Interface CredentialEntry
-
- All Known Implementing Classes:
PasswordEntry
public interface CredentialEntry
Entry 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 HttpException
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 authentication
- Returns:
- Value as per above description.
- Throws:
HttpException
- If fails to retrieve the credentials.
-
retrieveRoles
java.util.Set<java.lang.String> retrieveRoles() throws HttpException
Retrieves the roles.- Returns:
Set
of roles.- Throws:
HttpException
- If fails to retrieve the roles.
-
-