public interface AuthenticationService
SsoToken
.Modifier and Type | Method and Description |
---|---|
Promise<SsoToken,AuthenticationException> |
authenticate(Context context,
String username,
char[] password)
Authenticates a subject (identified with the given
username and password credentials),
returning asynchronously an SSO token (if the authentication succeeded) or an AuthenticationException
on failures (I/O, invalid credentials, ...). |
Promise<SsoToken,AuthenticationException> authenticate(Context context, String username, char[] password)
username
and password
credentials),
returning asynchronously an SSO token (if the authentication succeeded) or an AuthenticationException
on failures (I/O, invalid credentials, ...).context
- Service contextusername
- subject's usernamepassword
- subject's credentialsSsoToken
Copyright 2011-2017 ForgeRock AS.