Class BasicAuthenticator
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.auth.BasicAuthenticator
-
- All Implemented Interfaces:
Authenticator
public class BasicAuthenticator extends Object implements Authenticator
BasicAuthenticator.
-
-
Constructor Summary
Constructors Constructor Description BasicAuthenticator(String realm)
Creates a newBasicAuthenticator
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authentication
authenticate(Principal principal, Credentials credentials)
Authenticates the current user for the specified principal and credentials.void
setUserIdentityManager(UsersIdentityManager idm)
-
-
-
Constructor Detail
-
BasicAuthenticator
public BasicAuthenticator(String realm)
Creates a newBasicAuthenticator
instance.- Parameters:
realm
- the realm name to authenticate user.
-
-
Method Detail
-
setUserIdentityManager
public void setUserIdentityManager(UsersIdentityManager idm)
-
authenticate
public Authentication authenticate(Principal principal, Credentials credentials)
Authenticates the current user for the specified principal and credentials.- Specified by:
authenticate
in interfaceAuthenticator
- Parameters:
principal
- thePrincipal
of the user to authenticate.credentials
- theCredentials
of the user to authenticate.- Returns:
- the
Authentication
instance.
-
-