Enum PosixFile.CryptAlgorithm

All Implemented Interfaces:
Serializable, Comparable<PosixFile.CryptAlgorithm>
Enclosing class:

public static enum PosixFile.CryptAlgorithm extends Enum<PosixFile.CryptAlgorithm>
The set of supported crypt algorithms.
  • Enum Constant Details

  • Method Details

    • values

      public static PosixFile.CryptAlgorithm[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PosixFile.CryptAlgorithm 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getSaltPrefix

      public String getSaltPrefix()
    • getSaltLength

      public int getSaltLength()
      Gets the number of characters in the salt, not including the prefix.
    • generateSalt

      public String generateSalt(SecureRandom secureRandom)
      Generates a random salt for this algorithm.