public class ActiveDirectoryCredentialEncoder extends Object implements LDAPCredentialEncoder.LDAPCredentialToByteArrayEncoder
LDAPCredentialEncoder.LDAPCredentialToByteArrayEncoder, LDAPCredentialEncoder.LDAPCredentialToStringEncoder| Constructor and Description |
|---|
ActiveDirectoryCredentialEncoder(LDAPCredentialEncoder.LDAPCredentialToStringEncoder baseEncoder) |
| 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.
|
LDAPCredentialEncoder.LDAPCredentialToStringEncoder |
getBaseEncoder() |
boolean |
supportsSettingEncryptedPasswords() |
public ActiveDirectoryCredentialEncoder(LDAPCredentialEncoder.LDAPCredentialToStringEncoder baseEncoder)
public byte[] encodeCredential(PasswordCredential passwordCredential) throws InvalidCredentialException
LDAPCredentialEncoderencodeCredential in interface LDAPCredentialEncoderencodeCredential in interface LDAPCredentialEncoder.LDAPCredentialToByteArrayEncoderpasswordCredential - 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)public boolean supportsSettingEncryptedPasswords()
supportsSettingEncryptedPasswords in interface LDAPCredentialEncodertrue if the LDAP directory supports client-side encryption of passwords.public LDAPCredentialEncoder.LDAPCredentialToStringEncoder getBaseEncoder()
Copyright © 2018 Atlassian. All rights reserved.