Package org.xipki.ocsp.server.type
Enum OID
- java.lang.Object
-
- java.lang.Enum<OID>
-
- org.xipki.ocsp.server.type.OID
-
- All Implemented Interfaces:
Serializable,Comparable<OID>
public enum OID extends Enum<OID>
OID enums.- Since:
- 2.2.0
- Author:
- Lijun Liao (xipki)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ID_INVALIDITY_DATEID_ISISMTT_AT_CERTHASHID_PKIX_OCSP_ARCHIVE_CUTOFFID_PKIX_OCSP_EXTENDEDREVOKEID_PKIX_OCSP_NONCEID_PKIX_OCSP_PREFSIGALGSID_PKIX_OCSP_RESPONSE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEncodedLength()StringgetId()static OIDgetInstanceForEncoded(byte[] data, int offset)static OIDvalueOf(String name)Returns the enum constant of this type with the specified name.static OID[]values()Returns an array containing the constants of this enum type, in the order they are declared.intwrite(byte[] out, int offset)
-
-
-
Enum Constant Detail
-
ID_PKIX_OCSP_NONCE
public static final OID ID_PKIX_OCSP_NONCE
-
ID_PKIX_OCSP_PREFSIGALGS
public static final OID ID_PKIX_OCSP_PREFSIGALGS
-
ID_PKIX_OCSP_EXTENDEDREVOKE
public static final OID ID_PKIX_OCSP_EXTENDEDREVOKE
-
ID_ISISMTT_AT_CERTHASH
public static final OID ID_ISISMTT_AT_CERTHASH
-
ID_INVALIDITY_DATE
public static final OID ID_INVALIDITY_DATE
-
ID_PKIX_OCSP_ARCHIVE_CUTOFF
public static final OID ID_PKIX_OCSP_ARCHIVE_CUTOFF
-
ID_PKIX_OCSP_RESPONSE
public static final OID ID_PKIX_OCSP_RESPONSE
-
-
Method Detail
-
values
public static OID[] 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 (OID c : OID.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OID 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
-
getId
public String getId()
-
getEncodedLength
public int getEncodedLength()
-
write
public int write(byte[] out, int offset)
-
getInstanceForEncoded
public static OID getInstanceForEncoded(byte[] data, int offset)
-
-