Enum PassphraseEncryptionCipherType

java.lang.Object
java.lang.Enum<PassphraseEncryptionCipherType>
com.unboundid.util.PassphraseEncryptionCipherType
All Implemented Interfaces:
Serializable, Comparable<PassphraseEncryptionCipherType>, java.lang.constant.Constable

This enum defines sets of settings that may be used when encrypting data with a PassphraseEncryptedOutputStream.
  • Enum Constant Details

  • 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 name
      NullPointerException - if the argument is null
    • getCipherTransformation

      Retrieves the cipher transformation that will be used for the encryption.
      Returns:
      The cipher transformation that will be used for the encryption.
    • getKeyLengthBits

      public int getKeyLengthBits()
      Retrieves the length (in bits) for the encryption key to generate.
      Returns:
      The length (in bits) for the encryption key to generate.
    • getKeyFactoryAlgorithm

      Retrieves the name of the algorithm that will be used to generate the encryption key from the passphrase.
      Returns:
      The name of the algorithm that will be used to generate the encryption key from the passphrase.
    • getKeyFactoryIterationCount

      Retrieves the iteration count that will be used when generating the encryption key from the passphrase.
      Returns:
      The iteration count that will be used when generating the encryption key from the passphrase.
    • getKeyFactorySaltLengthBytes

      Retrieves the length (in bytes) to use for the salt when generating the encryption key from the passphrase.
      Returns:
      The length (in bytes) to use for the salt when generating the encryption key from the passphrase.
    • getInitializationVectorLengthBytes

      Retrieves the length (in bytes) to use for the initialization vector when generating the cipher.
      Returns:
      The length (in bytes) to use for the initialization vector when generating the cipher.
    • getMacAlgorithm

      Retrieves the name of the algorithm that will be used to generate a MAC of the encryption header contents.
      Returns:
      The name of the algorithm that will be used to generate a MAC of the encryption header contents.
    • forName

      Retrieves the cipher type value for the provided name.
      Parameters:
      name - The name of the cipher type value to retrieve.
      Returns:
      The cipher type object for the given name, or null if the provided name does not map to any cipher type value.
    • getStrongestAvailableCipherType

      Retrieves the cipher type value that corresponds to the strongest supported level of protection that is available in the underlying JVM.
      Returns:
      The cipher type value that corresponds to the strongest supported level of protection in the underlying JVM.
    • toString

      Retrieves a string representation of this cipher type value.
      Overrides:
      toString in class Enum<PassphraseEncryptionCipherType>
      Returns:
      A string representation of this cipher type value.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      Appends a string representation of this cipher type value to the provided buffer.
      Parameters:
      buffer - The buffer to which the information should be appended.