org.opensaml.xml.security.credential
Enum UsageType

java.lang.Object
  extended by java.lang.Enum<UsageType>
      extended by org.opensaml.xml.security.credential.UsageType
All Implemented Interfaces:
Serializable, Comparable<UsageType>

public enum UsageType
extends Enum<UsageType>

Credential usage types.


Enum Constant Summary
ENCRYPTION
          Key used for encryption processes.
SIGNING
          Key used for signature processes including TLS/SSL.
UNSPECIFIED
          Denotes that the purpose of the key was not specified.
 
Method Summary
static UsageType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UsageType[] 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

ENCRYPTION

public static final UsageType ENCRYPTION
Key used for encryption processes.


SIGNING

public static final UsageType SIGNING
Key used for signature processes including TLS/SSL.


UNSPECIFIED

public static final UsageType UNSPECIFIED
Denotes that the purpose of the key was not specified.

Method Detail

values

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

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

valueOf

public static UsageType 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 © 1999-2013. All Rights Reserved.