|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<KeyPurposeId>
edu.vt.middleware.crypt.x509.types.KeyPurposeId
public enum KeyPurposeId
Represents the KeyPurposeId type described in section 4.2.1.13
of RFC 2459, which is used to indicate extended key usage.
| Enum Constant Summary | |
|---|---|
ClientAuth
TLS Web client authentication. |
|
CodeSigning
Signing of downloadable executable code. |
|
EmailProtection
E-mail protection, e.g. |
|
ServerAuth
TLS Web server authentication. |
|
SmartCardLogin
Microsoft-specific usage for smart-card-based authentication. |
|
TimeStamping
Binding the hash of an object to a time from an agreed-upon time. |
|
| Method Summary | |
|---|---|
static KeyPurposeId |
getByOid(String oid)
Gets a key purpose identifier by its OID. |
String |
getOid()
|
static KeyPurposeId |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static KeyPurposeId[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final KeyPurposeId ServerAuth
public static final KeyPurposeId ClientAuth
public static final KeyPurposeId CodeSigning
public static final KeyPurposeId EmailProtection
public static final KeyPurposeId TimeStamping
public static final KeyPurposeId SmartCardLogin
| Method Detail |
|---|
public static KeyPurposeId[] values()
for (KeyPurposeId c : KeyPurposeId.values()) System.out.println(c);
public static KeyPurposeId valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getOid()
public static KeyPurposeId getByOid(String oid)
oid - OID of key identifier to retrieve.
IllegalArgumentException - If there is no key purpose ID with the
given OID.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||