eu.emi.dsr.security
Enum SignatureStatus

java.lang.Object
  extended by java.lang.Enum<SignatureStatus>
      extended by eu.emi.dsr.security.SignatureStatus
All Implemented Interfaces:
Serializable, Comparable<SignatureStatus>

public enum SignatureStatus
extends Enum<SignatureStatus>

Enum with status of the signature verification.

Author:
K. Benedyczak

Enum Constant Summary
OK
          Request is correctly signed.
OK_BUT_NOT_IN_POLICY
          Request is correctly signed, but not all elements required by policy were signed.
UNCHECKED
          Signature wasn't checked for this request.
UNSIGNED
          Request is unsigned.
WRONG
          Request is signed but incorrectly.
 
Method Summary
static SignatureStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SignatureStatus[] 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

UNCHECKED

public static final SignatureStatus UNCHECKED
Signature wasn't checked for this request. It is not known if it is present or not.


UNSIGNED

public static final SignatureStatus UNSIGNED
Request is unsigned.


OK

public static final SignatureStatus OK
Request is correctly signed.


WRONG

public static final SignatureStatus WRONG
Request is signed but incorrectly.


OK_BUT_NOT_IN_POLICY

public static final SignatureStatus OK_BUT_NOT_IN_POLICY
Request is correctly signed, but not all elements required by policy were signed. Can be treated as UNSIGNED.

Method Detail

values

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

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

valueOf

public static SignatureStatus 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 © 2012. All Rights Reserved.