|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PasswordEncoderFactory
This factory manages the getting of a PasswordEncoder, based on given encoder key such as 'MD5', 'SSHA', 'SHA', "PLAINTEXT, "DES"
Field Summary | |
---|---|
static String |
ATLASSIAN_SECURITY_ENCODER
|
static String |
DES_ENCODER
|
static String |
MD5_ENCODER
|
static String |
PLAINTEXT_ENCODER
|
static String |
SHA_ENCODER
|
static String |
SSHA_ENCODER
|
Method Summary | |
---|---|
void |
addEncoder(PasswordEncoder passwordEncoder)
Hook to add encoders to the factory |
PasswordEncoder |
getEncoder(String encoder)
This will return an LDAP encoder for the given key. |
PasswordEncoder |
getInternalEncoder(String encoder)
This will return an Internal encoder for the given key. |
PasswordEncoder |
getLdapEncoder(String encoder)
This will return an LDAP encoder for the given key. |
Set<String> |
getSupportedInternalEncoders()
This will return a list of supported encoders suitable for use in an Internal Directory, this will be the values held by PasswordEncoder.getKey() |
Set<String> |
getSupportedLdapEncoders()
This will return a list of supported encoders for a Remote Directory using LDAP, this will be the values held by PasswordEncoder.getKey() |
void |
removeEncoder(PasswordEncoder passwordEncoder)
Will remove a given encoder from the available encoders in the PasswordEncoder factory |
Field Detail |
---|
static final String DES_ENCODER
static final String SSHA_ENCODER
static final String SHA_ENCODER
static final String PLAINTEXT_ENCODER
static final String MD5_ENCODER
static final String ATLASSIAN_SECURITY_ENCODER
Method Detail |
---|
PasswordEncoder getInternalEncoder(String encoder) throws PasswordEncoderNotFoundException
encoder
- the encoder requested, eg "ssha"
PasswordEncoderNotFoundException
- if no encoder is found matching the given keyPasswordEncoder getLdapEncoder(String encoder) throws PasswordEncoderNotFoundException
encoder
- the encoder requested, eg "ssha"
PasswordEncoderNotFoundException
- if no encoder is found matching the given keyPasswordEncoder getEncoder(String encoder) throws PasswordEncoderNotFoundException
encoder
- the encoder requested, eg "ssha"
PasswordEncoderNotFoundException
- if no encoder is found matching the given keySet<String> getSupportedInternalEncoders()
PasswordEncoder.getKey()
Set<String> getSupportedLdapEncoders()
PasswordEncoder.getKey()
void addEncoder(PasswordEncoder passwordEncoder) throws PasswordEncoderException
passwordEncoder
- the password encoder to have available in the factory
PasswordEncoderException
- if there was an issue add the encoder to the factoryvoid removeEncoder(PasswordEncoder passwordEncoder)
passwordEncoder
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |