|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.jdkim.DKIMCommon
org.apache.james.jdkim.DKIMVerifier
public class DKIMVerifier
| Constructor Summary | |
|---|---|
DKIMVerifier()
|
|
DKIMVerifier(PublicKeyRecordRetriever publicKeyRecordRetriever)
|
|
| Method Summary | |
|---|---|
static void |
apply(PublicKeyRecord pkr,
SignatureRecord sign)
asserts applicability of a signature record the a public key record. |
protected PublicKeyRecordRetriever |
getPublicKeyRecordRetriever()
|
BodyHasher |
newBodyHasher(Headers messageHeaders)
|
protected BodyHasherImpl |
newBodyHasher(SignatureRecord signRecord)
|
protected PublicKeyRecord |
newPublicKeyRecord(String record)
|
SignatureRecord |
newSignatureRecord(String record)
|
PublicKeyRecord |
publicKeySelector(List<String> records)
|
PublicKeyRecord |
publicRecordLookup(SignatureRecord sign)
Iterates through signature's declared lookup method |
List<SignatureRecord> |
verify(BodyHasher bh)
Completes the simultaneous verification of multiple signatures given the previously prepared compound body hasher where the user already written the body to the outputstream and closed it. |
List<SignatureRecord> |
verify(Headers messageHeaders,
InputStream bodyInputStream)
Verifies all of the DKIM-Signature records declared in the Headers object. |
List<SignatureRecord> |
verify(InputStream is)
Verifies all of the DKIM-Signature records declared in the supplied input stream |
| Methods inherited from class org.apache.james.jdkim.DKIMCommon |
|---|
signatureCheck, streamCopy, updateSignature |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DKIMVerifier()
public DKIMVerifier(PublicKeyRecordRetriever publicKeyRecordRetriever)
| Method Detail |
|---|
protected PublicKeyRecord newPublicKeyRecord(String record)
public SignatureRecord newSignatureRecord(String record)
protected BodyHasherImpl newBodyHasher(SignatureRecord signRecord)
throws PermFailException
PermFailException
protected PublicKeyRecordRetriever getPublicKeyRecordRetriever()
throws PermFailException
PermFailException
public PublicKeyRecord publicKeySelector(List<String> records)
throws PermFailException
PermFailException
public static void apply(PublicKeyRecord pkr,
SignatureRecord sign)
throws PermFailException
pkr - public key recordsign - signature record
PermFailException - when the keys are not applicable
public PublicKeyRecord publicRecordLookup(SignatureRecord sign)
throws TempFailException,
PermFailException
sign - the signature record
TempFailException
PermFailException
public List<SignatureRecord> verify(InputStream is)
throws IOException,
FailException
is - inputStream
IOException
FailException - if no signature can be verified
public BodyHasher newBodyHasher(Headers messageHeaders)
throws FailException
FailException
public List<SignatureRecord> verify(Headers messageHeaders,
InputStream bodyInputStream)
throws IOException,
FailException
messageHeaders - parsed headersbodyInputStream - input stream for the body.
IOException
FailException - if no signature can be verified
public List<SignatureRecord> verify(BodyHasher bh)
throws FailException
compoundBodyHasher - the BodyHasher previously obtained by this class.
FailException - if no valid signature is found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||