public static interface LDAPCredentialEncoder.LDAPCredentialToByteArrayEncoder extends LDAPCredentialEncoder
LDAPCredentialEncoder.LDAPCredentialToByteArrayEncoder, LDAPCredentialEncoder.LDAPCredentialToStringEncoder| Modifier and Type | Method and Description |
|---|---|
byte[] |
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.
|
supportsSettingEncryptedPasswordsbyte[] encodeCredential(PasswordCredential passwordCredential) throws InvalidCredentialException
LDAPCredentialEncoderencodeCredential in interface LDAPCredentialEncoderpasswordCredential - 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 © 2019 Atlassian. All rights reserved.