public interface AuthenticationStrategy
SecurityContext
as a result.Modifier and Type | Method and Description |
---|---|
Promise<org.forgerock.services.context.SecurityContext,LdapException> |
authenticate(String username,
String password,
org.forgerock.services.context.Context parentContext)
Authenticate a user.
|
Promise<org.forgerock.services.context.SecurityContext,LdapException> authenticate(String username, String password, org.forgerock.services.context.Context parentContext)
username
- User to authenticate.password
- Password used to perform the authentication.parentContext
- Context to use as parent for the created SecurityContext
Context
if the authentication succeed or an LdapException
otherwise.Copyright 2010-2018 ForgeRock AS.