uk.me.nxg.xoxa.gpg
Enum GPGInformation.KeyStatus

java.lang.Object
  extended by java.lang.Enum<GPGInformation.KeyStatus>
      extended by uk.me.nxg.xoxa.gpg.GPGInformation.KeyStatus
All Implemented Interfaces:
Serializable, Comparable<GPGInformation.KeyStatus>
Enclosing class:
GPGInformation

public static enum GPGInformation.KeyStatus
extends Enum<GPGInformation.KeyStatus>

Indicates the various status that a key can have. For each signature, only one of these statuses can apply.


Enum Constant Summary
BAD
          The signature with the keyid has not been verified okay.
ERROR
          It was not possible to check the signature.
EXPIRED
          The signature with the keyid is good, but the signature is expired.
EXPIREDKEY
          The signature with the keyid is good, but the signature was made by an expired key.
GOOD
          The signature with the keyid is good.
REVOKEDKEY
          The signature with the keyid is good, but the signature was made by a revoked key.
 
Method Summary
static GPGInformation.KeyStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GPGInformation.KeyStatus[] 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

GOOD

public static final GPGInformation.KeyStatus GOOD
The signature with the keyid is good.


BAD

public static final GPGInformation.KeyStatus BAD
The signature with the keyid has not been verified okay.


EXPIRED

public static final GPGInformation.KeyStatus EXPIRED
The signature with the keyid is good, but the signature is expired.


EXPIREDKEY

public static final GPGInformation.KeyStatus EXPIREDKEY
The signature with the keyid is good, but the signature was made by an expired key.


REVOKEDKEY

public static final GPGInformation.KeyStatus REVOKEDKEY
The signature with the keyid is good, but the signature was made by a revoked key.


ERROR

public static final GPGInformation.KeyStatus ERROR
It was not possible to check the signature. This may be caused by a missing public key or an unsupported algorithm.

Method Detail

values

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

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

valueOf

public static GPGInformation.KeyStatus 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 © 2015. All rights reserved.