| java.lang.Object org.acegisecurity.providers.encoding.BasePasswordEncoder
All known Subclasses: org.acegisecurity.providers.encoding.BaseDigestPasswordEncoder, org.acegisecurity.providers.encoding.PlaintextPasswordEncoder,
BasePasswordEncoder | abstract public class BasePasswordEncoder implements PasswordEncoder(Code) | | Convenience base for all password encoders.
author: Ben Alex version: $Id: BasePasswordEncoder.java 1496 2006-05-23 13:38:33Z benalex $ |
demergePasswordAndSalt | protected String[] demergePasswordAndSalt(String mergedPasswordSalt)(Code) | | Used by subclasses to extract the password and salt from a merged String created using
BasePasswordEncoder.mergePasswordAndSalt(String,Object,boolean) .The first element in the returned array is the
password. The second element is the salt. The salt array element will always be present, even if no salt was
found in the mergedPasswordSalt argument.
Parameters: mergedPasswordSalt - as generated by mergePasswordAndSalt an array, in which the first element is the password and the second the salt throws: IllegalArgumentException - if mergedPasswordSalt is null or empty. |
mergePasswordAndSalt | protected String mergePasswordAndSalt(String password, Object salt, boolean strict)(Code) | | Used by subclasses to generate a merged password and salt String .The generated password
will be in the form of password{salt} .
A null can be passed to either method, and will be handled correctly. If the
salt is null or empty, the resulting generated password will simply be the passed
password . The toString method of the salt will be used to represent the
salt.
Parameters: password - the password to be used (can be null ) Parameters: salt - the salt to be used (can be null ) Parameters: strict - ensures salt doesn't contain the delimiters a merged password and salt String throws: IllegalArgumentException - if the salt contains '{' or '}' characters. |
|
|