Interface AuthenticationService
-
- All Known Implementing Classes:
AuthenticatorAuthenticationService
public interface AuthenticationService
Asynchronous AM authentication service deliveringSsoToken
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Promise<SsoToken,AuthenticationException>
authenticate(Context context, String username, SecretReference<GenericSecret> passwordRef)
Authenticates a subject (identified with the givenusername
andpasswordRef
credentials), returning asynchronously an SSO token (if the authentication succeeded) or anAuthenticationException
on failures (I/O, invalid credentials, ...).
-
-
-
Method Detail
-
authenticate
Promise<SsoToken,AuthenticationException> authenticate(Context context, String username, SecretReference<GenericSecret> passwordRef)
Authenticates a subject (identified with the givenusername
andpasswordRef
credentials), returning asynchronously an SSO token (if the authentication succeeded) or anAuthenticationException
on failures (I/O, invalid credentials, ...).- Parameters:
context
- Service contextusername
- subject's usernamepasswordRef
- subject's credentials as aSecretReference
- Returns:
- a promise of an
SsoToken
-
-