org.jboss.resteasy.security.doseta
Class Verifier

java.lang.Object
  extended by org.jboss.resteasy.security.doseta.Verifier

public class Verifier
extends java.lang.Object

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  KeyRepository repository
           
protected  java.util.List<Verification> verifications
           
 
Constructor Summary
Verifier()
           
 
Method Summary
 Verification addNew()
           
 KeyRepository getRepository()
           
 java.util.List<Verification> getVerifications()
           
 void setRepository(KeyRepository repository)
           
 VerificationResults verify(java.util.List<DKIMSignature> signatures, java.util.Map headers, byte[] body)
          Try to verify a set of signatures and store the results
 VerificationResult verify(java.util.Map headers, byte[] body, Verification verification, DKIMSignature signature)
          Verify one signature and store the results
 void verifySignature(java.util.Map headers, byte[] body, Verification verification, DKIMSignature signature)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repository

protected KeyRepository repository

verifications

protected java.util.List<Verification> verifications
Constructor Detail

Verifier

public Verifier()
Method Detail

getRepository

public KeyRepository getRepository()

setRepository

public void setRepository(KeyRepository repository)

addNew

public Verification addNew()

getVerifications

public java.util.List<Verification> getVerifications()

verify

public VerificationResults verify(java.util.List<DKIMSignature> signatures,
                                  java.util.Map headers,
                                  byte[] body)
Try to verify a set of signatures and store the results

Parameters:
signatures -
headers -
body -
Returns:

verify

public VerificationResult verify(java.util.Map headers,
                                 byte[] body,
                                 Verification verification,
                                 DKIMSignature signature)
Verify one signature and store the results

Parameters:
headers -
body -
verification -
signature -
Returns:

verifySignature

public void verifySignature(java.util.Map headers,
                            byte[] body,
                            Verification verification,
                            DKIMSignature signature)
                     throws java.security.SignatureException
Throws:
java.security.SignatureException


Copyright © 2011. All Rights Reserved.