public class Base64MD5PasswordFilePrincipalDatabase extends AbstractPasswordFilePrincipalDatabase<HashedUser>
DEFAULT_ENCODING
Constructor and Description |
---|
Base64MD5PasswordFilePrincipalDatabase() |
Modifier and Type | Method and Description |
---|---|
SaslServer |
createSaslServer(String mechanism,
String localFQDN,
Principal externalPrincipal) |
protected HashedUser |
createUserFromFileData(String[] result) |
protected HashedUser |
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 Base64MD5PasswordFilePrincipalDatabase()
public boolean verifyPassword(String principal, char[] password) throws AccountNotFoundException
principal
- The principal to authenticatepassword
- The password to checkAccountNotFoundException
- if the principal cannot be foundprotected HashedUser createUserFromPassword(Principal principal, char[] passwd)
createUserFromPassword
in class AbstractPasswordFilePrincipalDatabase<HashedUser>
protected HashedUser createUserFromFileData(String[] result)
createUserFromFileData
in class AbstractPasswordFilePrincipalDatabase<HashedUser>
protected org.slf4j.Logger getLogger()
getLogger
in class AbstractPasswordFilePrincipalDatabase<HashedUser>
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.