cz.utb.fai.simkovicp.pki.verification.result
Enum TimestampStatus

java.lang.Object
  extended by java.lang.Enum<TimestampStatus>
      extended by cz.utb.fai.simkovicp.pki.verification.result.TimestampStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TimestampStatus>

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

This enumeration represents the timestamp verification status.


Enum Constant Summary
CERT_NOT_VALID
          Timestamp token signature is not valid
FOREIGN_TIMESTAMP_TOKEN
          Timestam token refers into foreign document
NO_TIMESTAMP_TOKEN
          Signature has not timestamp token
SIGN_CERT_EXPIRATED
          Signing certificate expirated
SIGN_CERT_MISSING
          Missing signing certificate
SIGN_CERT_NOT_IN_TRUSTSTORE
          Signing certificate is not in trust store
SIGN_CERT_NOT_YET_VALID
          Signing certificate expirated
TIMESTAMP_OK
          Timestamp is OK.
 
Method Summary
 int getCode()
          Signature code
static TimestampStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TimestampStatus[] 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

TIMESTAMP_OK

public static final TimestampStatus TIMESTAMP_OK
Timestamp is OK.


NO_TIMESTAMP_TOKEN

public static final TimestampStatus NO_TIMESTAMP_TOKEN
Signature has not timestamp token


FOREIGN_TIMESTAMP_TOKEN

public static final TimestampStatus FOREIGN_TIMESTAMP_TOKEN
Timestam token refers into foreign document


SIGN_CERT_MISSING

public static final TimestampStatus SIGN_CERT_MISSING
Missing signing certificate


SIGN_CERT_NOT_IN_TRUSTSTORE

public static final TimestampStatus SIGN_CERT_NOT_IN_TRUSTSTORE
Signing certificate is not in trust store


SIGN_CERT_EXPIRATED

public static final TimestampStatus SIGN_CERT_EXPIRATED
Signing certificate expirated


SIGN_CERT_NOT_YET_VALID

public static final TimestampStatus SIGN_CERT_NOT_YET_VALID
Signing certificate expirated


CERT_NOT_VALID

public static final TimestampStatus CERT_NOT_VALID
Timestamp token signature is not valid

Method Detail

values

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

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

valueOf

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

getCode

public int getCode()
Signature code

Returns:
the code