Constructor and Description |
---|
BasicIdentity(Credentials.BasicCredentials credentials)
Build an identity using only basic credentials.
|
BasicIdentity(String name)
Build identity with no associated credentials
|
BasicIdentity(String name,
char[] password)
Associate a user ID with a basic password credential
|
BasicIdentity(String name,
Credentials credentials)
Associate a user with some credentials
|
BasicIdentity(String name,
String password)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Credentials |
getCredentials() |
String |
getName()
Returns the name of this principal.
|
void |
setCredentials(Credentials credentials) |
void |
setName(String name) |
public BasicIdentity(String name)
name
- the identity namepublic BasicIdentity(Credentials.BasicCredentials credentials)
credentials
- the basic credentials.public BasicIdentity(String name, Credentials credentials)
name
- the user namecredentials
- the credentials@Deprecated public BasicIdentity(String name, String password)
name
- the user namepassword
- the user passwordpublic BasicIdentity(String name, char[] password)
name
- the user namepassword
- the user passwordpublic void setName(String name)
public void setCredentials(Credentials credentials)
public Credentials getCredentials()
getCredentials
in interface Identity