|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DkimError>
badpenguin.dkim.DkimError
public enum DkimError
This class enumerates the possible DKIM and DomainKey errors specified in their respective RFC's. The JavaDKIM library should throw a DkimException with the appropriate DkimError and ErrorType when ever something is not quite right.
Enum Constant Summary | |
---|---|
bad
DomainKey status - The signature failed verification |
|
badformat
DomainKey status - The signature or the public key contains unexpected data |
|
BODYHASH
DKIM status - PERMFAIL (Body Hash Did Not Verify) |
|
CONTENT
DKIM status - PERMFAIL (Unsigned Content) |
|
good
DomainKey status - The signature was verified at the time of testing |
|
KEYALG
DKIM status - PERMFAIL (Inappropriate Key Algorithm) |
|
KEYFAIL
DKIM status - PERMFAIL (Inapplicable Key) |
|
KEYHASH
DKIM status - PERMFAIL (Inappropriate Hash Algorithm) |
|
KEYREVOKED
DKIM status - PERMFAIL (Key Revoked) |
|
KEYSYNTAX
DKIM status - PERMFAIL (Key Syntax Error) |
|
KEYUNVAIL
DKIM status - TEMPFAIL (Key Unavailable) |
|
LIBERROR
Library Error - An internal error has occurred |
|
nokey
DomainKey status - The public key query failed as the key does not exist |
|
NOKEY
DKIM status - PERMFAIL (No Key For Signature) |
|
NOSIG
This email has no DomainKey-Signature nand/nor DKIM header. |
|
participant
DomainKey status - The sending domain has indicated it does not participate in DomainKeys |
|
PERMFAIL
Generic Permenant Failure encountered. |
|
revoked
DomainKey status - The public key query failed as the key has been revoked |
|
SIGDOMAIN
DKIM status - PERMFAIL (Domain Mismatch) |
|
SIGEXPIRED
DKIM status - PERMFAIL (Signature Expired) |
|
SIGFAIL
DKIM status - PERMFAIL (Unacceptable Signature Header) |
|
SIGFROM
DKIM status - PERMFAIL (From Header Not Signed) |
|
SIGREQTAG
DKIM status - PERMFAIL (Signature Missing Required Tag) |
|
SIGSYNTAX
DKIM status - PERMFAIL (Signature Syntax Error) |
|
SIGVERIFY
DKIM status - PERMFAIL (Signature Did Not Verify) |
|
SIGVERSION
DKIM status - PERMFAIL (Incompatible Version) |
|
TEMPFAIL
Generic Temporary Failure |
Field Summary | |
---|---|
ErrorType |
errorType
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get the detailed description |
java.lang.String |
getStatus()
Get the RFC error status |
static DkimError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DkimError[] |
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 |
---|
public static final DkimError good
public static final DkimError bad
public static final DkimError nokey
public static final DkimError revoked
public static final DkimError badformat
public static final DkimError participant
public static final DkimError TEMPFAIL
public static final DkimError PERMFAIL
public static final DkimError SIGSYNTAX
public static final DkimError SIGVERSION
public static final DkimError SIGREQTAG
public static final DkimError SIGDOMAIN
public static final DkimError SIGFROM
public static final DkimError SIGEXPIRED
public static final DkimError SIGFAIL
public static final DkimError KEYUNVAIL
public static final DkimError NOKEY
public static final DkimError KEYSYNTAX
public static final DkimError KEYFAIL
public static final DkimError KEYHASH
public static final DkimError KEYREVOKED
public static final DkimError KEYALG
public static final DkimError BODYHASH
public static final DkimError SIGVERIFY
public static final DkimError CONTENT
public static final DkimError NOSIG
public static final DkimError LIBERROR
Field Detail |
---|
public ErrorType errorType
Method Detail |
---|
public static DkimError[] values()
for (DkimError c : DkimError.values()) System.out.println(c);
public static DkimError valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getStatus()
public java.lang.String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |