Interface AuthenticationService
-
- All Known Implementing Classes:
AgentAuthenticationService,DefaultAuthenticationService
public interface AuthenticationServiceAsynchronous 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, char[] password)Authenticates a subject (identified with the givenusernameandpasswordcredentials), returning asynchronously an SSO token (if the authentication succeeded) or anAuthenticationExceptionon failures (I/O, invalid credentials, ...).
-
-
-
Method Detail
-
authenticate
Promise<SsoToken,AuthenticationException> authenticate(Context context, String username, char[] password)
Authenticates a subject (identified with the givenusernameandpasswordcredentials), returning asynchronously an SSO token (if the authentication succeeded) or anAuthenticationExceptionon failures (I/O, invalid credentials, ...).- Parameters:
context- Service contextusername- subject's usernamepassword- subject's credentials- Returns:
- a promise of an
SsoToken
-
-