org.nhindirect.config.model
Enum CertPolicyUse

java.lang.Object
  extended by java.lang.Enum<CertPolicyUse>
      extended by org.nhindirect.config.model.CertPolicyUse
All Implemented Interfaces:
Serializable, Comparable<CertPolicyUse>

public enum CertPolicyUse
extends Enum<CertPolicyUse>

Enumeration of certificate policy usages.

Since:
1.0
Author:
Greg Meyer

Enum Constant Summary
PRIVATE_RESOLVER
          Used when accessing certificate via a private resolver.
PUBLIC_RESOLVER
          Used when accessing certificate via a public resolver.
TRUST
          Used when validating certificate path trust chaining
VALIDATION
          Used when performing basic policy validation outside the context of the security and trust agent.
 
Method Summary
static CertPolicyUse valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CertPolicyUse[] 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

TRUST

public static final CertPolicyUse TRUST
Used when validating certificate path trust chaining


PRIVATE_RESOLVER

public static final CertPolicyUse PRIVATE_RESOLVER
Used when accessing certificate via a private resolver.


PUBLIC_RESOLVER

public static final CertPolicyUse PUBLIC_RESOLVER
Used when accessing certificate via a public resolver.


VALIDATION

public static final CertPolicyUse VALIDATION
Used when performing basic policy validation outside the context of the security and trust agent.

Method Detail

values

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

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

valueOf

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


Copyright © 2014. All Rights Reserved.