Method Summary |
|
public boolean | authenticate() Authenticates the user using recieved credentials to proof his identity. |
public Object | clone() |
protected String | createPasswordHash(String password) This method allows password hashing. |
protected CredentialProvider | doMakeCredentialProvider() |
protected String | encodeBase16(byte[] bytes) Base16 encoding (HEX). |
protected String | encodeBase64(byte[] bytes) Base64 encoding. |
protected MessageDigest | getDigest() Only invoke this if algorithm is set. |
public String | getHashAlgorithm() |
public String | getHashCharset() |
public String | getHashEncoding() Getter for the encoding used for password hashing. |
public String | getName() |
protected String | getPassword(Credential[] credentials) Gets the password from the recevied credentials. |
protected PasswordCredential | getPasswordCredential(Credential[] credentials) Gets the credential that represents a password. |
public Principal | getPrincipal() The username recieved as UsernameCredential instance, if any. |
public Principal | getPrincipal(Credential[] credentials) The username recieved as UsernameCredential instance, if any. |
public Credential[] | getPrivateCredentials() Only one password credential supported. |
public Credential[] | getPublicCredentials() Only one username credential supported. |
public int | getSaltLength() Only used when CRYPT is configured, default value is 2. |
protected String | getUsername(Credential[] credentials) Gets the username from the received credentials. |
protected UsernameCredential | getUsernameCredential(Credential[] credentials) Gets the credential that represents a Username. |
public void | setHashAlgorithm(String hashAlgorithm) |
public void | setHashCharset(String hashCharset) |
public void | setHashEncoding(String hashEnconding) Setter for the encoding used for password hashing. |
public void | setIgnorePasswordCase(String ignorePasswordCase) |
public void | setIgnoreUserCase(String ignoreUserCase) |
public void | setName(String name) |
public void | setSaltLenght(String saltLenght) |
public void | setSaltLength(int sl) |
protected boolean | validatePassword(String inputPassword, String expectedPassword) This method validates the input password agaist the expected password. |
protected boolean | validateUsername(String inputUsername, String expectedUsername) This method validates the input password agaist the expected password. |