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()
AuthenticationIdentity
getPassword
in interface AuthenticationIdentity
public java.lang.String getUsername()
AuthenticationIdentity
getUsername
in interface AuthenticationIdentity
public java.lang.String getDomain()
AuthenticationIdentity
getDomain
in interface AuthenticationIdentity
public java.lang.String toString()
toString
in class java.lang.Object