Package org.bzdev.net

Enum SecureBasicUtilities.Mode

java.lang.Object
java.lang.Enum<SecureBasicUtilities.Mode>
org.bzdev.net.SecureBasicUtilities.Mode
All Implemented Interfaces:
Serializable, Comparable<SecureBasicUtilities.Mode>
Enclosing class:
SecureBasicUtilities

public static enum SecureBasicUtilities.Mode extends Enum<SecureBasicUtilities.Mode>
Type of the generated password.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    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 generated password is the user-supplied password
    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 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 Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • DIGEST

      public static final SecureBasicUtilities.Mode 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

      public static final SecureBasicUtilities.Mode 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

      public static final SecureBasicUtilities.Mode 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

      public static final SecureBasicUtilities.Mode PASSWORD
      The generated password is the user-supplied password
  • Method Details

    • values

      public static SecureBasicUtilities.Mode[] 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

      public static SecureBasicUtilities.Mode valueOf(String name)
      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 name
      NullPointerException - if the argument is null