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