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
        digitalSignature
      • NON_REPUDIATION

        public static final KeyUsageBit NON_REPUDIATION
        nonRepudiation
      • KEY_ENCIPHERMENT

        public static final KeyUsageBit KEY_ENCIPHERMENT
        keyEncipherment
      • DATA_ENCIPHERMENT

        public static final KeyUsageBit DATA_ENCIPHERMENT
        dataEncipherment
      • KEY_AGREEMENT

        public static final KeyUsageBit KEY_AGREEMENT
        keyAgreement
      • KEY_CERT_SIGN

        public static final KeyUsageBit KEY_CERT_SIGN
        keyCertSign
      • CRL_SIGN

        public static final KeyUsageBit CRL_SIGN
        crlSign
      • ENCIPHER_ONLY

        public static final KeyUsageBit ENCIPHER_ONLY
        encipherOnly
      • DECIPHER_ONLY

        public static final KeyUsageBit DECIPHER_ONLY
        decipherOnly
    • Method Detail

      • values

        public static KeyUsageBit[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (KeyUsageBit c : KeyUsageBit.values())
            System.out.println(c);
        
        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()
        Returns the key usage name
        Returns:
        String
      • getIndex

        public int getIndex()
        Returns the key usage bit value
        Returns:
        key usage bit