Enum KeyUsageEnum
- java.lang.Object
-
- java.lang.Enum<KeyUsageEnum>
-
- network.oxalis.commons.certvalidator.jaxb.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 Summary
Enum Constants Enum Constant Description CRL_SIGNDATA_ENCIPHERMENTDECIPHER_ONLYDIGITAL_SIGNATUREENCIPHER_ONLYKEY_AGREEMENTKEY_CERT_SIGNKEY_ENCIPHERMENTNON_REPUDIATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyUsageEnumfromValue(String v)Stringvalue()static KeyUsageEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static KeyUsageEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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
-
CRL_SIGN
public static final KeyUsageEnum CRL_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 nameNullPointerException- if the argument is null
-
value
public String value()
-
fromValue
public static KeyUsageEnum fromValue(String v)
-
-