|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbadpenguin.dkim.Verifier
public class Verifier
This class provides all the necessary interfaces to check and verify a message for either a DKIM or DomainKey signature.
| Constructor Summary | |
|---|---|
Verifier(NSKeyStore keyStore)
Create a new Verifier object. |
|
Verifier(NSKeyStore keyStore,
java.lang.String sigPref)
Create a new Verifier object. |
|
Verifier(NSKeyStore keyStore,
java.lang.String sigPref,
boolean tryBoth)
Create a new Verifier object. |
|
| Method Summary | |
|---|---|
void |
addBadDomain(java.lang.String domain)
Add the given domain to the list of Bad Domains. |
int |
getMaximumSigs()
Get the number of Signatures that this Verifier will attempt to Verify. |
void |
setBadDomains(java.lang.String[] domains)
Set up the list of bad domains. |
void |
setleniency(boolean leniency)
Be more lenient when we encounter broken signatures or errors. |
void |
setMaximumSigs(int maxSigs)
The Verifier will default to trying only one Signature, the last one we find (of you preferred type, if possible). |
void |
tryBoth(boolean tryBoth)
Set the fail back option on or off. |
void |
verifyMail(java.io.InputStream msg)
Verify the provided email message. |
void |
verifyMail(java.io.InputStream msg,
long receivedTime)
This function performs the same actions as verifyMail(msg), however, this one will accept a long representing the messages received time. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Verifier(NSKeyStore keyStore,
java.lang.String sigPref,
boolean tryBoth)
keyStore - - NSKeyStoresigPref - - Signature Preference (DKIM | DomainKey)tryBoth - - Try both signature types
public Verifier(NSKeyStore keyStore,
java.lang.String sigPref)
keyStore - - NSKeyStoresigPref - - Signature Preference (DKIM | DomainKey)public Verifier(NSKeyStore keyStore)
keyStore - - NSKeyStore| Method Detail |
|---|
public void setleniency(boolean leniency)
leniency - - turn on/off leniencypublic void tryBoth(boolean tryBoth)
tryBoth - - Try other signatures?public void setBadDomains(java.lang.String[] domains)
domains - public void addBadDomain(java.lang.String domain)
domain - public void setMaximumSigs(int maxSigs)
maxSigs - - Number of signatures to verifypublic int getMaximumSigs()
public void verifyMail(java.io.InputStream msg)
throws java.io.IOException,
DkimException
msg - - The message to be verified
java.io.IOException
DkimException
public void verifyMail(java.io.InputStream msg,
long receivedTime)
throws java.io.IOException,
DkimException
msg - receivedTime -
java.io.IOException
DkimException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||