Enum KeyUsageBit

  • All Implemented Interfaces:
    Serializable, Comparable<KeyUsageBit>

    public enum KeyUsageBit
    extends Enum<KeyUsageBit>
    KeyUsage bit values KeyUsage ::= BIT STRING { digitalSignature (0), nonRepudiation (1), keyEncipherment (2), dataEncipherment (3), keyAgreement (4), keyCertSign (5), cRLSign (6), encipherOnly (7), decipherOnly (8) }
    • Enum Constant Detail

      • DIGITAL_SIGNATURE

        public static final KeyUsageBit DIGITAL_SIGNATURE
      • NON_REPUDIATION

        public static final KeyUsageBit NON_REPUDIATION
      • KEY_ENCIPHERMENT

        public static final KeyUsageBit KEY_ENCIPHERMENT
      • DATA_ENCIPHERMENT

        public static final KeyUsageBit DATA_ENCIPHERMENT
      • KEY_AGREEMENT

        public static final KeyUsageBit KEY_AGREEMENT
      • KEY_CERT_SIGN

        public static final KeyUsageBit KEY_CERT_SIGN
      • ENCIPHER_ONLY

        public static final KeyUsageBit ENCIPHER_ONLY
      • DECIPHER_ONLY

        public static final KeyUsageBit DECIPHER_ONLY
    • Method Detail

      • values

        public static KeyUsageBit[] 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 KeyUsageBit 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
      • getValue

        public String getValue()
      • getIndex

        public int getIndex()