com.lacinato.tools.bdkim
Enum BdkimAnalyzer.SignatureResults.DkimStatus

java.lang.Object
  extended by java.lang.Enum<BdkimAnalyzer.SignatureResults.DkimStatus>
      extended by com.lacinato.tools.bdkim.BdkimAnalyzer.SignatureResults.DkimStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BdkimAnalyzer.SignatureResults.DkimStatus>
Enclosing class:
BdkimAnalyzer.SignatureResults

public static enum BdkimAnalyzer.SignatureResults.DkimStatus
extends java.lang.Enum<BdkimAnalyzer.SignatureResults.DkimStatus>

DomainKey and DKIM results. Note that Mail::DKIM will not return 'permerror' or 'policy', but might return 'temperror'. The unused values are just included for completeness and future development. Regarding 'temperror', Mail::DKIM says: "Returned if a DKIM-Signature could not be checked due to some error which is likely transient in nature, such as a temporary inability to retrieve a public key. A later attempt may produce a better result."

Note that "NONE" won't be used in reference to a particular signature, since it does not make sense to do so. It may be returned from getSummaryResult(), however, or you may use it in your own code.

See Also:
http://www.dkim.org/specs/draft-kucherawy-sender-auth-header-14.html#rfc.section.2.4.1

Enum Constant Summary
FAIL
           
INVALID
           
NONE
           
PASS
           
PERMERROR
           
POLICY
           
TEMPERROR
           
 
Method Summary
static BdkimAnalyzer.SignatureResults.DkimStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BdkimAnalyzer.SignatureResults.DkimStatus[] 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

PASS

public static final BdkimAnalyzer.SignatureResults.DkimStatus PASS

NONE

public static final BdkimAnalyzer.SignatureResults.DkimStatus NONE

INVALID

public static final BdkimAnalyzer.SignatureResults.DkimStatus INVALID

FAIL

public static final BdkimAnalyzer.SignatureResults.DkimStatus FAIL

TEMPERROR

public static final BdkimAnalyzer.SignatureResults.DkimStatus TEMPERROR

PERMERROR

public static final BdkimAnalyzer.SignatureResults.DkimStatus PERMERROR

POLICY

public static final BdkimAnalyzer.SignatureResults.DkimStatus POLICY
Method Detail

values

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

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

valueOf

public static BdkimAnalyzer.SignatureResults.DkimStatus 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