public class JPAAuthenticator extends Object implements Authenticator<CredentialsUsernamePassword,CredentialsUsernamePassword>
Constructor and Description |
---|
JPAAuthenticator(Class<? extends CredentialsUsernamePassword> authenticationEntityType) |
Modifier and Type | Method and Description |
---|---|
CredentialsUsernamePassword |
authenticate(CredentialsUsernamePassword credentials)
Tries to authenticate the passed credentials and returns an apropriate
result.
|
CredentialsUsernamePassword |
authenticate(String username,
String password) |
HashStrategy |
getHashStrategy() |
void |
setHashStrategy(HashStrategy hashStrategy) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
lambda, sequence, then
public JPAAuthenticator(Class<? extends CredentialsUsernamePassword> authenticationEntityType)
public final CredentialsUsernamePassword authenticate(String username, String password) throws AuthenticationFailedException
AuthenticationFailedException
public CredentialsUsernamePassword authenticate(CredentialsUsernamePassword credentials) throws AuthenticationFailedException
Authenticator
authenticate
in interface Authenticator<CredentialsUsernamePassword,CredentialsUsernamePassword>
credentials
- the credentials to be authenticatedAuthenticationFailedException
public HashStrategy getHashStrategy()
public void setHashStrategy(HashStrategy hashStrategy)