Enum Class KeyUsageBits

java.lang.Object
java.lang.Enum<KeyUsageBits>
org.webpki.crypto.KeyUsageBits
All Implemented Interfaces:
Serializable, Comparable<KeyUsageBits>, Constable

public enum KeyUsageBits extends Enum<KeyUsageBits>
  • Enum Constant Details

    • DIGITAL_SIGNATURE

      public static final KeyUsageBits DIGITAL_SIGNATURE
    • NON_REPUDIATION

      public static final KeyUsageBits NON_REPUDIATION
    • KEY_ENCIPHERMENT

      public static final KeyUsageBits KEY_ENCIPHERMENT
    • DATA_ENCIPHERMENT

      public static final KeyUsageBits DATA_ENCIPHERMENT
    • KEY_AGREEMENT

      public static final KeyUsageBits KEY_AGREEMENT
    • KEY_CERT_SIGN

      public static final KeyUsageBits KEY_CERT_SIGN
    • CRL_SIGN

      public static final KeyUsageBits CRL_SIGN
    • ENCIPHER_ONLY

      public static final KeyUsageBits ENCIPHER_ONLY
    • DECIPHER_ONLY

      public static final KeyUsageBits DECIPHER_ONLY
  • Method Details

    • values

      public static KeyUsageBits[] 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 KeyUsageBits 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
    • getX509Name

      public String getX509Name()
    • getKeyUsageBit

      public static KeyUsageBits getKeyUsageBit(String x509Name)