Class EnforceUnencryptedCredentialEncoder

java.lang.Object
com.atlassian.crowd.directory.ldap.credential.EnforceUnencryptedCredentialEncoder
All Implemented Interfaces:
LDAPCredentialEncoder, LDAPCredentialEncoder.LDAPCredentialToStringEncoder

public class EnforceUnencryptedCredentialEncoder extends Object implements LDAPCredentialEncoder.LDAPCredentialToStringEncoder
An encoder which passes a non-encrypted PasswordCredential's credential through untouched, but throws an exception for every already-encrypted (i.e. when PasswordCredential.isEncryptedCredential() returns true). The exception is PasswordCredential.NONE, in which case it generates a random password and returns that instead.