com.atlassian.crowd.password.encoder
Class LdapSshaPasswordEncoder
java.lang.Object
org.springframework.security.authentication.encoding.LdapShaPasswordEncoder
com.atlassian.crowd.password.encoder.LdapSshaPasswordEncoder
- All Implemented Interfaces:
- InternalPasswordEncoder, LdapPasswordEncoder, org.springframework.security.authentication.encoding.PasswordEncoder
public class LdapSshaPasswordEncoder
- extends org.springframework.security.authentication.encoding.LdapShaPasswordEncoder
- implements LdapPasswordEncoder, InternalPasswordEncoder
This class overrides the org.springframework.security.providers.ldap.authenticator.LdapShaPasswordEncoder
to specifically add salt to the SSHA
if it has not been provided
Method Summary |
String |
encodePassword(String rawPass,
Object salt)
This method delegates to org.springframework.security.providers.ldap.authenticator.LdapShaPasswordEncoder#encodePassword , 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 |
String |
getKey()
The key to define this password encoder |
Methods inherited from class org.springframework.security.authentication.encoding.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 String encodePassword(String rawPass,
Object salt)
- This method delegates to
org.springframework.security.providers.ldap.authenticator.LdapShaPasswordEncoder#encodePassword
, 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.authentication.encoding.PasswordEncoder
- Overrides:
encodePassword
in class org.springframework.security.authentication.encoding.LdapShaPasswordEncoder
- Parameters:
rawPass
- the password to encodesalt
- the salt needs to be of type byte[], if null a random salt value will be used
- Returns:
- String the encoded password
getKey
public String getKey()
- Description copied from interface:
PasswordEncoder
- The key to define this password encoder
- Returns:
Copyright © 2013 Atlassian. All Rights Reserved.