public interface CredentialEntry
CredentialStore
.Modifier and Type | Method and Description |
---|---|
byte[] |
retrieveCredentials()
Retrieves the credentials.
|
Set<String> |
retrieveRoles()
Retrieves the roles.
|
byte[] retrieveCredentials() throws IOException
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 authenticationIOException
- If fails to retrieve the credentials.Set<String> retrieveRoles() throws IOException
Set
of roles.IOException
- If fails to retrieve the roles.Copyright © 2005–2016. All rights reserved.