public class PlainPasswordFilePrincipalDatabase extends AbstractPasswordFilePrincipalDatabase<PlainUser>
DEFAULT_ENCODING
Constructor and Description |
---|
PlainPasswordFilePrincipalDatabase(AuthenticationProvider<?> authenticationProvider) |
Modifier and Type | Method and Description |
---|---|
SaslServer |
createSaslServer(String mechanism,
String localFQDN,
Principal externalPrincipal) |
protected PlainUser |
createUserFromFileData(String[] result) |
protected PlainUser |
createUserFromPassword(Principal principal,
char[] passwd) |
protected org.slf4j.Logger |
getLogger() |
List<String> |
getMechanisms()
Get the list of mechanisms supported for use with the PrincipalDatabase
|
boolean |
verifyPassword(String principal,
char[] password)
Used to verify that the presented Password is correct.
|
compareCharArray, createPrincipal, deletePrincipal, getUser, getUsers, lookupPassword, open, reload, savePasswordFile, setPassword, updatePassword
public PlainPasswordFilePrincipalDatabase(AuthenticationProvider<?> authenticationProvider)
public boolean verifyPassword(String principal, char[] password) throws AccountNotFoundException
principal
- The principal to authenticatepassword
- The plaintext password to checkAccountNotFoundException
- if the principal cannot be foundprotected PlainUser createUserFromPassword(Principal principal, char[] passwd)
createUserFromPassword
in class AbstractPasswordFilePrincipalDatabase<PlainUser>
protected PlainUser createUserFromFileData(String[] result)
createUserFromFileData
in class AbstractPasswordFilePrincipalDatabase<PlainUser>
protected org.slf4j.Logger getLogger()
getLogger
in class AbstractPasswordFilePrincipalDatabase<PlainUser>
public List<String> getMechanisms()
PrincipalDatabase
public SaslServer createSaslServer(String mechanism, String localFQDN, Principal externalPrincipal) throws SaslException
SaslException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.