ca.infoway.messagebuilder.transport
Class UsernamePasswordCredentials

Package class diagram package UsernamePasswordCredentials
java.lang.Object
  extended by ca.infoway.messagebuilder.transport.UsernamePasswordCredentials
All Implemented Interfaces:
Credentials

public class UsernamePasswordCredentials
extends Object
implements Credentials

A simple credentials implementation. Stores username and password.

Author:
Intelliware Development sharpen.ignore - transport - TBD!

Constructor Summary
UsernamePasswordCredentials(String username, String password)
          Constructs a usernamePassword credential with the given username and password.
 
Method Summary
 String getPassword()
          Obtains the password.
 String getUsername()
          Obtains the username.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernamePasswordCredentials

public UsernamePasswordCredentials(String username,
                                   String password)

Constructs a usernamePassword credential with the given username and password.

Parameters:
username - the username/login id for the credentials
password - the plaintext password for the credentials
Method Detail

getUsername

public String getUsername()

Obtains the username.

Returns:
the username

getPassword

public String getPassword()

Obtains the password.

Returns:
the plaintext password


Copyright © 2013. All Rights Reserved.