public class SimpleAuthenticationIdentity extends java.lang.Object implements AuthenticationIdentity
AuthenticationIdentity interface.
Connector developers may want to use this to implement unit tests.| Constructor and Description |
|---|
SimpleAuthenticationIdentity(java.lang.String username)
Constructs a
SimpleAuthenticationIdentity using just a user-name. |
SimpleAuthenticationIdentity(java.lang.String username,
java.lang.String password)
Constructs a
SimpleAuthenticationIdentity using only a user-name
and a password. |
SimpleAuthenticationIdentity(java.lang.String username,
java.lang.String password,
java.lang.String domain)
Constructs a
SimpleAuthenticationIdentity using user-name,
and password and domain. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDomain()
Gets the domain.
|
java.lang.String |
getPassword()
Gets the password.
|
java.lang.String |
getUsername()
Gets the username.
|
java.lang.String |
toString()
Returns a loggable string representation of this identity.
|
public SimpleAuthenticationIdentity(java.lang.String username)
SimpleAuthenticationIdentity using just a user-name.username - the user's namepublic SimpleAuthenticationIdentity(java.lang.String username,
java.lang.String password)
SimpleAuthenticationIdentity using only a user-name
and a password.username - the user's namepassword - the password associated with the user's namepublic SimpleAuthenticationIdentity(java.lang.String username,
java.lang.String password,
java.lang.String domain)
SimpleAuthenticationIdentity using user-name,
and password and domain.username - the user's namepassword - the password associated with the user's namedomain - the domain associated with this userpublic java.lang.String getPassword()
AuthenticationIdentitygetPassword in interface AuthenticationIdentitypublic java.lang.String getUsername()
AuthenticationIdentitygetUsername in interface AuthenticationIdentitypublic java.lang.String getDomain()
AuthenticationIdentitygetDomain in interface AuthenticationIdentitypublic java.lang.String toString()
toString in class java.lang.Object