Package com.isode.dsapi.config
Enum Class DSACreationTemplate.PasswordHash
java.lang.Object
java.lang.Enum<DSACreationTemplate.PasswordHash>
com.isode.dsapi.config.DSACreationTemplate.PasswordHash
- All Implemented Interfaces:
Serializable
,Comparable<DSACreationTemplate.PasswordHash>
,Constable
- Enclosing class:
- DSACreationTemplate
This enum stores the supported password hash schemes in the DSA -
obtained from lib/syntax/x500/passwd.c. It also supports the
corresponding SASL scheme if there is one.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClear Textcrypt(3)MD5 DigestAuthPassword SCRAM-SHA1 DigestAuthPassword SCRAM-SHA-256 DigestSHA-1 DigestSHA-2(256) DigestSalted MD5 DigestSalted SHA-1 DigestSalted SHA-2(256) Digest -
Method Summary
Modifier and TypeMethodDescriptionGet the string to be used as a value for saslAvailableMechanismsGet the string to be used as a value for pwdConfiguredSchemeGeneratorsReturns the enum constant of this class with the specified name.static DSACreationTemplate.PasswordHash[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLEARTEXT
Clear Text -
SCRAM_SHA_1
AuthPassword SCRAM-SHA1 Digest -
SCRAM_SHA_256
AuthPassword SCRAM-SHA-256 Digest -
SHA2
SHA-2(256) Digest -
SSHA2
Salted SHA-2(256) Digest -
SHA
SHA-1 Digest -
SSHA
Salted SHA-1 Digest -
MD5
MD5 Digest -
SMD5
Salted MD5 Digest -
CRYPT
crypt(3)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getSchemeGenerator
Get the string to be used as a value for pwdConfiguredSchemeGenerators- Returns:
- the scheme generator
-
getSaslMech
Get the string to be used as a value for saslAvailableMechanisms- Returns:
- the sasl mechanism to enable
-
getShortName
- Returns:
- Short name for the scheme
-
getFriendlyString
- Returns:
- Friendly string for the scheme
-