public interface PasswordEncoderFactory
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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
|
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
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 factoryPasswordEncoderException
- if there was an issue add the encoder to the factoryvoid removeEncoder(PasswordEncoder passwordEncoder)
Copyright © 2016 Atlassian. All rights reserved.