Interface CredentialEntry
-
- All Known Implementing Classes:
PasswordEntry
public interface CredentialEntryEntry within theCredentialStore.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]retrieveCredentials()Retrieves the credentials.java.util.Set<java.lang.String>retrieveRoles()Retrieves the roles.
-
-
-
Method Detail
-
retrieveCredentials
byte[] retrieveCredentials() throws HttpExceptionRetrieves 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
- Returns:
- Value as per above description.
- Throws:
HttpException- If fails to retrieve the credentials.
-
retrieveRoles
java.util.Set<java.lang.String> retrieveRoles() throws HttpExceptionRetrieves the roles.- Returns:
Setof roles.- Throws:
HttpException- If fails to retrieve the roles.
-
-