public class PasswordEntry extends Object implements CredentialEntry
Constructor and Description |
---|
PasswordEntry(String userId,
byte[] credentials,
Set<String> roles)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
String |
getUserId()
Obtains the User Id.
|
byte[] |
retrieveCredentials()
Retrieves the credentials.
|
Set<String> |
retrieveRoles()
Retrieves the roles.
|
public String getUserId()
public byte[] retrieveCredentials()
CredentialEntry
Retrieves the credentials.
The actual credentials are particular to the authentication scheme:
Basic
: clear text password (Charset
being
US_ASCII)Digest
: encrypted "username:realm:password" as
per the algorithm. For example, if the algorithm were MD5 then the
following command would produce the appropriate value (Charset
being US_ASCII):
echo -n "username:realm:password" | md5sum
Negotiate
: as necessary for authenticationretrieveCredentials
in interface CredentialEntry
public Set<String> retrieveRoles()
CredentialEntry
retrieveRoles
in interface CredentialEntry
Set
of roles.Copyright © 2005–2016. All rights reserved.