Interface CryptPasswordStorageSchemeCfgClient
-
- All Superinterfaces:
ConfigurationClient
,PasswordStorageSchemeCfgClient
public interface CryptPasswordStorageSchemeCfgClient extends PasswordStorageSchemeCfgClient
A client-side interface for reading and modifying Crypt Password Storage Scheme settings.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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends CryptPasswordStorageSchemeCfgClient,? extends CryptPasswordStorageSchemeCfg>
definition()
Get the configuration definition associated with this Crypt Password Storage Scheme.ValueOrExpression<CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm>
getCryptPasswordStorageEncryptionAlgorithm()
Gets the "crypt-password-storage-encryption-algorithm" property.ValueOrExpression<String>
getJavaClass()
Gets the "java-class" property.void
setCryptPasswordStorageEncryptionAlgorithm(ValueOrExpression<CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm> value)
Sets the "crypt-password-storage-encryption-algorithm" property.void
setJavaClass(ValueOrExpression<String> value)
Sets the "java-class" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
Methods inherited from interface org.forgerock.opendj.server.config.client.PasswordStorageSchemeCfgClient
isEnabled, setEnabled
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends CryptPasswordStorageSchemeCfgClient,? extends CryptPasswordStorageSchemeCfg> definition()
Get the configuration definition associated with this Crypt Password Storage Scheme.- Specified by:
definition
in interfaceConfigurationClient
- Specified by:
definition
in interfacePasswordStorageSchemeCfgClient
- Returns:
- Returns the configuration definition associated with this Crypt Password Storage Scheme.
-
getCryptPasswordStorageEncryptionAlgorithm
@MandatoryProperty ValueOrExpression<CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm> getCryptPasswordStorageEncryptionAlgorithm()
Gets the "crypt-password-storage-encryption-algorithm" property.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.
Default value:
unix
- Returns:
- Returns the value of the "crypt-password-storage-encryption-algorithm" property.
-
setCryptPasswordStorageEncryptionAlgorithm
@MandatoryProperty void setCryptPasswordStorageEncryptionAlgorithm(ValueOrExpression<CryptPasswordStorageSchemeCfgDefn.CryptPasswordStorageEncryptionAlgorithm> value) throws PropertyException
Sets the "crypt-password-storage-encryption-algorithm" property.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.
- Parameters:
value
- The value of the "crypt-password-storage-encryption-algorithm" property.- Throws:
PropertyException
- If the new value is invalid.
-
getJavaClass
@MandatoryProperty ValueOrExpression<String> getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the Crypt Password Storage Scheme implementation.
Default value:
org.opends.server.extensions.CryptPasswordStorageScheme
- Specified by:
getJavaClass
in interfacePasswordStorageSchemeCfgClient
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
@MandatoryProperty void setJavaClass(ValueOrExpression<String> value) throws PropertyException
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the Crypt Password Storage Scheme implementation.
- Specified by:
setJavaClass
in interfacePasswordStorageSchemeCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
-