org.nhindirect.stagent.cryptography
Enum EncryptionError

java.lang.Object
  extended by java.lang.Enum<EncryptionError>
      extended by org.nhindirect.stagent.cryptography.EncryptionError
All Implemented Interfaces:
Serializable, Comparable<EncryptionError>

public enum EncryptionError
extends Enum<EncryptionError>

Enumeration of encryption errors.

Author:
Greg Meyer, Umesh Madan

Enum Constant Summary
ContentNotDataContainer
           
NoCertificates
           
NoPrivateKey
           
NotEncrypted
           
NullContent
           
NullEntity
           
 
Method Summary
static EncryptionError valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EncryptionError[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NullEntity

public static final EncryptionError NullEntity

NullContent

public static final EncryptionError NullContent

ContentNotDataContainer

public static final EncryptionError ContentNotDataContainer

NoCertificates

public static final EncryptionError NoCertificates

NoPrivateKey

public static final EncryptionError NoPrivateKey

NotEncrypted

public static final EncryptionError NotEncrypted
Method Detail

values

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

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

valueOf

public static EncryptionError 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 © 2010-2012 HNIN Direct. All Rights Reserved.