org.nhindirect.stagent
Enum AgentError

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

public enum AgentError
extends java.lang.Enum<AgentError>

Enumeration of security and trust agent errors.

Author:
Greg Meyer, Umesh Madan

Enum Constant Summary
InvalidEncryption
           
InvalidSignature
           
MessageNotWrapped
           
MissingFrom
           
MissingMessage
           
MissingRecipientCertificate
           
MissingSenderCertificate
           
MissingSenderSignature
           
MissingTo
           
NoRecipients
           
NoSender
           
NoTrustedRecipients
           
Unexpected
           
UnknownRecipient
           
UnsignedMessage
           
UntrustedMessage
           
UntrustedSender
           
 
Method Summary
static AgentError valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AgentError[] 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

Unexpected

public static final AgentError Unexpected

MissingTo

public static final AgentError MissingTo

MissingFrom

public static final AgentError MissingFrom

MissingMessage

public static final AgentError MissingMessage

MessageNotWrapped

public static final AgentError MessageNotWrapped

NoRecipients

public static final AgentError NoRecipients

NoSender

public static final AgentError NoSender

InvalidSignature

public static final AgentError InvalidSignature

InvalidEncryption

public static final AgentError InvalidEncryption

UntrustedMessage

public static final AgentError UntrustedMessage

UntrustedSender

public static final AgentError UntrustedSender

UnknownRecipient

public static final AgentError UnknownRecipient

UnsignedMessage

public static final AgentError UnsignedMessage

MissingSenderSignature

public static final AgentError MissingSenderSignature

MissingSenderCertificate

public static final AgentError MissingSenderCertificate

MissingRecipientCertificate

public static final AgentError MissingRecipientCertificate

NoTrustedRecipients

public static final AgentError NoTrustedRecipients
Method Detail

values

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

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

valueOf

public static AgentError valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2010-2011 HNIN Direct. All Rights Reserved.