- All Implemented Interfaces:
Serializable
,Comparable<SecureBasicUtilities.Mode>
- Enclosing class:
- SecureBasicUtilities
Type of the generated password.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe generated password contains a SHA-256 digest of a four byte timestamp (seconds from 1970-01-01T00:00:00Z in little-endian order) and a user-supplied password using UTF-8 encoding.The generated password is the user-supplied passwordThe generated password contains a digital signature of a four byte timestamp (seconds from 1970-01-01T00:00:00Z in little-endian order), the DER encoding of the public key provided by a server in an SSL/TLS certificate, and finally a user-supplied password using UTF-8 encoding.The generated password contains a digital signature of a four byte timestamp (seconds from 1970-01-01T00:00:00Z in little-endian order) and a user-supplied password using UTF-8 encoding. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecureBasicUtilities.Mode
Returns the enum constant of this type with the specified name.static SecureBasicUtilities.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DIGEST
The generated password contains a SHA-256 digest of a four byte timestamp (seconds from 1970-01-01T00:00:00Z in little-endian order) and a user-supplied password using UTF-8 encoding. The digest is encoded using the URL-safe base 64 encoding. -
SIGNATURE_WITHOUT_CERT
The generated password contains a digital signature of a four byte timestamp (seconds from 1970-01-01T00:00:00Z in little-endian order) and a user-supplied password using UTF-8 encoding. The signature is encoded using the URL-safe base 64 encoding. -
SIGNATURE_WITH_CERT
The generated password contains a digital signature of a four byte timestamp (seconds from 1970-01-01T00:00:00Z in little-endian order), the DER encoding of the public key provided by a server in an SSL/TLS certificate, and finally a user-supplied password using UTF-8 encoding. The signature is encoded using the URL-safe base 64 encoding. -
PASSWORD
The generated password is the user-supplied password
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-