Interface AuthenticationStrategy
public interface AuthenticationStrategy
Authenticate a user and create a
SecurityContext as a result.-
Method Summary
Modifier and TypeMethodDescriptionorg.forgerock.util.promise.Promise<org.forgerock.services.context.SecurityContext, org.forgerock.opendj.ldap.LdapException> authenticate(String username, String password, org.forgerock.services.context.Context parentContext) Authenticate a user.
-
Method Details
-
authenticate
org.forgerock.util.promise.Promise<org.forgerock.services.context.SecurityContext,org.forgerock.opendj.ldap.LdapException> authenticate(String username, String password, org.forgerock.services.context.Context parentContext) Authenticate a user.- Parameters:
username- User to authenticate.password- Password used to perform the authentication.parentContext- Context to use as parent for the createdSecurityContext- Returns:
- A
Contextif the authentication succeed or anLdapExceptionotherwise.
-