Class PasswordEntry
java.lang.Object
net.officefloor.web.security.store.PasswordEntry
- All Implemented Interfaces:
CredentialEntry
- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordEntry(String userId, byte[] credentials, Set<String> roles) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionObtains the User Id.byte[]Retrieves the credentials.Retrieves the roles.
-
Constructor Details
-
PasswordEntry
Initiate.- Parameters:
userId- User Id.credentials- Credentials.roles- Roles.
-
-
Method Details
-
getUserId
Obtains the User Id.- Returns:
- User Id.
-
retrieveCredentials
public byte[] retrieveCredentials()Description copied from interface:CredentialEntryRetrieves the credentials.
The actual credentials are particular to the authentication scheme:
Basic: clear text password (Charsetbeing 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 (Charsetbeing US_ASCII):echo -n "username:realm:password" | md5sumNegotiate: as necessary for authentication
- Specified by:
retrieveCredentialsin interfaceCredentialEntry- Returns:
- Value as per above description.
-
retrieveRoles
Description copied from interface:CredentialEntryRetrieves the roles.- Specified by:
retrieveRolesin interfaceCredentialEntry- Returns:
Setof roles.
-