public interface CryptPasswordStorageSchemeCfg extends PasswordStorageSchemeCfg
The Crypt Password Storage Scheme provides a mechanism for encoding user passwords like Unix crypt does. Like on most Unix systems, the password may be encrypted using different algorithms, either Unix crypt, md5, sha256 or sha512.
Modifier and Type | Method and Description |
---|---|
void |
addCryptChangeListener(ConfigurationChangeListener<CryptPasswordStorageSchemeCfg> listener)
Register to be notified when this Crypt Password Storage Scheme is changed.
|
Class<? extends CryptPasswordStorageSchemeCfg> |
configurationClass()
Gets the configuration class associated with this Crypt Password Storage Scheme.
|
CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm |
getCryptPasswordStorageEncryptionAlgorithm()
Gets the "crypt-password-storage-encryption-algorithm" property.
|
String |
getJavaClass()
Gets the "java-class" property.
|
void |
removeCryptChangeListener(ConfigurationChangeListener<CryptPasswordStorageSchemeCfg> listener)
Deregister an existing Crypt Password Storage Scheme configuration change listener.
|
addChangeListener, isEnabled, removeChangeListener
dn, name
Class<? extends CryptPasswordStorageSchemeCfg> configurationClass()
configurationClass
in interface Configuration
configurationClass
in interface PasswordStorageSchemeCfg
void addCryptChangeListener(ConfigurationChangeListener<CryptPasswordStorageSchemeCfg> listener)
listener
- The Crypt Password Storage Scheme configuration change listener.void removeCryptChangeListener(ConfigurationChangeListener<CryptPasswordStorageSchemeCfg> listener)
listener
- The Crypt Password Storage Scheme configuration change listener.CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm getCryptPasswordStorageEncryptionAlgorithm()
Specifies the algorithm to use to encrypt new passwords.
Select the crypt algorithm to use to encrypt new passwords. The value can either be "unix", which means the password is encrypted with the weak Unix crypt algorithm, or "md5" which means the password is encrypted with the BSD MD5 algorithm and has a $1$ prefix, or "sha256" which means the password is encrypted with the SHA256 algorithm and has a $5$ prefix, or "sha512" which means the password is encrypted with the SHA512 algorithm and has a $6$ prefix.
String getJavaClass()
Specifies the fully-qualified name of the Java class that provides the Crypt Password Storage Scheme implementation.
getJavaClass
in interface PasswordStorageSchemeCfg
Copyright 2010-2020 ForgeRock AS.