com.didisoft.pgp
Enum SignatureCheckResult

java.lang.Object
  extended by java.lang.Enum<SignatureCheckResult>
      extended by com.didisoft.pgp.SignatureCheckResult
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SignatureCheckResult>

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

Represents the result of an OpenPGP signature check

This object represents the signature check result from the methods verifyAndExtractX and decryptAndVerifyX of the @see PGPLib class

Since:
3.1

Enum Constant Summary
NoSignatureFound
          No signature was found in the input data
PublicKeyNotMatching
          The signature wasn't made with the provided public key
SignatureBroken
          Signature broken or forged
SignatureVerified
          Signature verified with the provided public key(s)
 
Method Summary
static SignatureCheckResult valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SignatureCheckResult[] 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

SignatureVerified

public static final SignatureCheckResult SignatureVerified
Signature verified with the provided public key(s)


SignatureBroken

public static final SignatureCheckResult SignatureBroken
Signature broken or forged


PublicKeyNotMatching

public static final SignatureCheckResult PublicKeyNotMatching
The signature wasn't made with the provided public key


NoSignatureFound

public static final SignatureCheckResult NoSignatureFound
No signature was found in the input data

Method Detail

values

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

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

valueOf

public static SignatureCheckResult 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 © 2006-2017 DidiSoft Ltd. All Rights Reserved.