com.atlassian.crowd.password.encoder
Class LdapSshaPasswordEncoder
java.lang.Object
org.springframework.security.providers.ldap.authenticator.LdapShaPasswordEncoder
com.atlassian.crowd.password.encoder.LdapSshaPasswordEncoder
- All Implemented Interfaces:
- InternalPasswordEncoder, LdapPasswordEncoder, org.springframework.security.providers.encoding.PasswordEncoder
public class LdapSshaPasswordEncoder
- extends org.springframework.security.providers.ldap.authenticator.LdapShaPasswordEncoder
- implements LdapPasswordEncoder, InternalPasswordEncoder
This class overrides the LdapShaPasswordEncoder
to specifically add salt to the SSHA
if it has not been provided
Method Summary |
java.lang.String |
encodePassword(java.lang.String rawPass,
java.lang.Object salt)
This method delgates to LdapShaPasswordEncoder.encodePassword(java.lang.String, java.lang.Object) , but if the passed in salt is null
Crowd will use the propertyManager to find the salt used for Token's and pass that along to the underlying implementation |
java.lang.String |
getKey()
The key to define this password encoder |
void |
setPropertyManager(PropertyManager propertyManager)
|
Methods inherited from class org.springframework.security.providers.ldap.authenticator.LdapShaPasswordEncoder |
isPasswordValid, setForceLowerCasePrefix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapSshaPasswordEncoder
public LdapSshaPasswordEncoder()
encodePassword
public java.lang.String encodePassword(java.lang.String rawPass,
java.lang.Object salt)
- This method delgates to
LdapShaPasswordEncoder.encodePassword(java.lang.String, java.lang.Object)
, but if the passed in salt is null
Crowd will use the propertyManager to find the salt used for Token's and pass that along to the underlying implementation
- Specified by:
encodePassword
in interface org.springframework.security.providers.encoding.PasswordEncoder
- Overrides:
encodePassword
in class org.springframework.security.providers.ldap.authenticator.LdapShaPasswordEncoder
- Parameters:
rawPass
- the password to encodesalt
- the salt needs to be of type byte[], if null a Crowd salt value will be used
- Returns:
- String the encoded password
getKey
public java.lang.String getKey()
- Description copied from interface:
PasswordEncoder
- The key to define this password encoder
- Returns:
setPropertyManager
public void setPropertyManager(PropertyManager propertyManager)
Copyright © 2010 Atlassian. All Rights Reserved.