Interface AuthenticationStrategy
public interface AuthenticationStrategy
Authenticate a user and create a
SecurityContext as a result.-
Method Summary
Modifier and TypeMethodDescriptionSingle<org.forgerock.services.context.SecurityContext>authenticate(String username, String password, org.forgerock.services.context.Context parentContext) Authenticate a user.
-
Method Details
-
authenticate
Single<org.forgerock.services.context.SecurityContext> 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.
-