public final class DefaultCredentialsProvider extends Object implements CredentialsProvider
CredentialsServer
.CredentialsServer
AUTHENTICATION_TOKEN_DELIMITER, AUTHENTICATION_TOKEN_PREFIX
Constructor and Description |
---|
DefaultCredentialsProvider() |
Modifier and Type | Method and Description |
---|---|
Optional<User> |
credentials(UUID authenticationToken)
Performs an authentication lookup, using the default registry port (1099).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticationToken, instance, isAuthenticationToken, parseAuthenticationToken
public Optional<User> credentials(UUID authenticationToken) throws CredentialsException
CredentialsProvider
credentials
in interface CredentialsProvider
authenticationToken
- the authentication tokenauthenticationToken
,
an empty Optional if the user credentials were not found or have expiredCredentialsException
- in case of an exception while fetching credentials, such as no credentials provider found