Enum KeyUsageEnum

  • All Implemented Interfaces:
    Serializable, Comparable<KeyUsageEnum>

    public enum KeyUsageEnum
    extends Enum<KeyUsageEnum>

    Java class for KeyUsageEnum.

    The following schema fragment specifies the expected content contained within this class.

     <simpleType name="KeyUsageEnum">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="DIGITAL_SIGNATURE"/>
         <enumeration value="NON_REPUDIATION"/>
         <enumeration value="KEY_ENCIPHERMENT"/>
         <enumeration value="DATA_ENCIPHERMENT"/>
         <enumeration value="KEY_AGREEMENT"/>
         <enumeration value="KEY_CERT_SIGN"/>
         <enumeration value="CRL_SIGN"/>
         <enumeration value="ENCIPHER_ONLY"/>
         <enumeration value="DECIPHER_ONLY"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • DIGITAL_SIGNATURE

        public static final KeyUsageEnum DIGITAL_SIGNATURE
      • NON_REPUDIATION

        public static final KeyUsageEnum NON_REPUDIATION
      • KEY_ENCIPHERMENT

        public static final KeyUsageEnum KEY_ENCIPHERMENT
      • DATA_ENCIPHERMENT

        public static final KeyUsageEnum DATA_ENCIPHERMENT
      • KEY_AGREEMENT

        public static final KeyUsageEnum KEY_AGREEMENT
      • KEY_CERT_SIGN

        public static final KeyUsageEnum KEY_CERT_SIGN
      • ENCIPHER_ONLY

        public static final KeyUsageEnum ENCIPHER_ONLY
      • DECIPHER_ONLY

        public static final KeyUsageEnum DECIPHER_ONLY
    • Method Detail

      • values

        public static KeyUsageEnum[] 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 (KeyUsageEnum c : KeyUsageEnum.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KeyUsageEnum 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
      • value

        public String value()