public interface LDAPCredentialEncoder
PasswordCredential
to the value expected by a particular directory connector.
This interface should not be implemented directly; implement LDAPCredentialEncoder.LDAPCredentialToStringEncoder
or
LDAPCredentialEncoder.LDAPCredentialToByteArrayEncoder
instead.Modifier and Type | Interface and Description |
---|---|
static interface |
LDAPCredentialEncoder.LDAPCredentialToByteArrayEncoder |
static interface |
LDAPCredentialEncoder.LDAPCredentialToStringEncoder |
Modifier and Type | Method and Description |
---|---|
Object |
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.
|
boolean |
supportsSettingEncryptedPasswords() |
Object encodeCredential(PasswordCredential passwordCredential) throws InvalidCredentialException
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.boolean supportsSettingEncryptedPasswords()
true
if the LDAP directory supports client-side encryption of passwords.Copyright © 2021 Atlassian. All rights reserved.
View cookie preferences