public static interface LDAPCredentialEncoder.LDAPCredentialToStringEncoder extends LDAPCredentialEncoder
LDAPCredentialEncoder.LDAPCredentialToByteArrayEncoder, LDAPCredentialEncoder.LDAPCredentialToStringEncoder
Modifier and Type | Method and Description |
---|---|
String |
encodeCredential(PasswordCredential passwordCredential)
Given an plain-text password, encodes/encrypts it according to the settings required by the particular directory
connector which this encoder is intended to be used with.
|
supportsSettingEncryptedPasswords
String encodeCredential(PasswordCredential passwordCredential) throws InvalidCredentialException
LDAPCredentialEncoder
encodeCredential
in interface LDAPCredentialEncoder
passwordCredential
- The password credential to be encoded, guanteed to be non-null. If the subclass
supports encrypting the given passwordCredential, it should NOT do so if
PasswordCredential.isEncryptedCredential()
returns true
(although it may still encode the credential to the format
required by the directory). The value of
PasswordCredential.getCredential()
is also
guaranteed to be non-null.InvalidCredentialException
- If the password could not be encoded.LDAPCredentialEncoder.encodeCredential(com.atlassian.crowd.embedded.api.PasswordCredential)
Copyright © 2020 Atlassian. All rights reserved.