T - the class consumed by this handlerpublic interface CredentialValidationTokenHandler<T> extends UserTokenHandler<T>
DominoClient.validateCredentialsWithToken(String, Object) and retrieve
the user's distinguished name.| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getUserDn(T token,
String serverName,
DominoClient contextDominoClient)
Processes the provided token object to look up the user DN.
|
canProcessOptional<String> getUserDn(T token, String serverName, DominoClient contextDominoClient) throws NameNotFoundException, AuthenticationException, AuthenticationNotSupportedException
This method is potentially called when UserTokenHandler.canProcess(Object) returns true
and should either:
Optional describing a user DN if found,token - the token to processserverName - the name of the server to look up on (may be ignored by implementations)contextDominoClient - the DominoClient instance calling the methodOptional describing the user's DN, or an empty one if a matching user cannot be locatedNameNotFoundException - if the token does not match a user but this implementation is considered fully authoritativeAuthenticationException - if the credential matches a user but does not meet authentication requirements (e.g. if the password is incorrect)AuthenticationNotSupportedException - if the user exists but is not configured to authenticate with this tokenCopyright © 2019–2021 HCL. All rights reserved.