Enum Class CryptoProtocolVersion

java.lang.Object
java.lang.Enum<CryptoProtocolVersion>
org.apache.hadoop.crypto.CryptoProtocolVersion
All Implemented Interfaces:
Serializable, Comparable<CryptoProtocolVersion>, Constable

@Private public enum CryptoProtocolVersion extends Enum<CryptoProtocolVersion>
Versions of the client/server protocol used for HDFS encryption.
  • Enum Constant Details

  • Method Details

    • values

      public static CryptoProtocolVersion[] 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

      public static CryptoProtocolVersion valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • supported

      public static CryptoProtocolVersion[] supported()
      Returns:
      Array of supported protocol versions.
    • supports

      public static boolean supports(CryptoProtocolVersion version)
      Returns if a given protocol version is supported.
      Parameters:
      version - version number
      Returns:
      true if the version is supported, else false
    • setUnknownValue

      public void setUnknownValue(int unknown)
    • getUnknownValue

      public int getUnknownValue()
    • getDescription

      public String getDescription()
    • getVersion

      public int getVersion()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CryptoProtocolVersion>