Interface AuthenticationService
-
- All Known Implementing Classes:
AgentAuthenticationService
,DefaultAuthenticationService
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, char[] password)
Authenticates a subject (identified with the givenusername
andpassword
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, char[] password)
Authenticates a subject (identified with the givenusername
andpassword
credentials), returning asynchronously an SSO token (if the authentication succeeded) or anAuthenticationException
on failures (I/O, invalid credentials, ...).- Parameters:
context
- Service contextusername
- subject's usernamepassword
- subject's credentials- Returns:
- a promise of an
SsoToken
-
-