edu.vt.middleware.crypt.x509.types
Enum AccessMethod

java.lang.Object
  extended by java.lang.Enum<AccessMethod>
      extended by edu.vt.middleware.crypt.x509.types.AccessMethod
All Implemented Interfaces:
Serializable, Comparable<AccessMethod>

public enum AccessMethod
extends Enum<AccessMethod>

Enumeration of supported OIDs for the accessMethod field of the AccessDescription type described in section 4.2.2.1 of RFC 2459.

Version:
$Revision: 2745 $
Author:
Middleware Services

Enum Constant Summary
CAIssuers
          CA Issuers access method.
OCSP
          Online Certificate Status Protocol.
 
Method Summary
static AccessMethod getByOid(String oid)
          Gets an access method by its OID.
 String getOid()
           
static AccessMethod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AccessMethod[] 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

CAIssuers

public static final AccessMethod CAIssuers
CA Issuers access method.


OCSP

public static final AccessMethod OCSP
Online Certificate Status Protocol.

Method Detail

values

public static AccessMethod[] 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 (AccessMethod c : AccessMethod.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AccessMethod 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

getOid

public String getOid()
Returns:
Key purpose object identifier.

getByOid

public static AccessMethod getByOid(String oid)
Gets an access method by its OID.

Parameters:
oid - OID of access method to retrieve.
Returns:
Access method whose OID matches given value.
Throws:
IllegalArgumentException - If there is no access method with the given OID.


Copyright © 2003-2013 Virginia Tech. All Rights Reserved.