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

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

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

This enemarion represents the signature verification status.


Enum Constant Summary
CERT_NOT_VALID
          Certificate is not valid
NO_SIGN_CERTIFICATE
          No certificate
SIGN_CERT_EXPIRATED
          Signing certificate expirated
SIGN_CERT_NOT_YET_VALID
          Signing certificate expirated
SIGNATURE_KO
          Signature is KO.
SIGNATURE_OK
          Signature is OK.
 
Method Summary
 int getCode()
          Signature code
static SignatureStatus valueOf(java.lang.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

SIGNATURE_OK

public static final SignatureStatus SIGNATURE_OK
Signature is OK.


SIGNATURE_KO

public static final SignatureStatus SIGNATURE_KO
Signature is KO.


CERT_NOT_VALID

public static final SignatureStatus CERT_NOT_VALID
Certificate is not valid


SIGN_CERT_EXPIRATED

public static final SignatureStatus SIGN_CERT_EXPIRATED
Signing certificate expirated


SIGN_CERT_NOT_YET_VALID

public static final SignatureStatus SIGN_CERT_NOT_YET_VALID
Signing certificate expirated


NO_SIGN_CERTIFICATE

public static final SignatureStatus NO_SIGN_CERTIFICATE
No certificate

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(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