public class Verifier extends Object
Modifier and Type | Field and Description |
---|---|
protected KeyRepository |
repository |
protected List<Verification> |
verifications |
Constructor and Description |
---|
Verifier() |
Modifier and Type | Method and Description |
---|---|
Verification |
addNew() |
KeyRepository |
getRepository() |
List<Verification> |
getVerifications() |
void |
setRepository(KeyRepository repository) |
VerificationResults |
verify(List<DKIMSignature> signatures,
Map headers,
byte[] body)
Try to verify a set of signatures and store the results
|
VerificationResult |
verify(Map headers,
byte[] body,
Verification verification,
DKIMSignature signature)
Verify one signature and store the results
|
javax.ws.rs.core.MultivaluedMap<String,String> |
verifySignature(Map headers,
byte[] body,
Verification verification,
DKIMSignature signature) |
protected KeyRepository repository
protected List<Verification> verifications
public KeyRepository getRepository()
public void setRepository(KeyRepository repository)
public Verification addNew()
public List<Verification> getVerifications()
public VerificationResults verify(List<DKIMSignature> signatures, Map headers, byte[] body)
signatures
- headers
- body
- public VerificationResult verify(Map headers, byte[] body, Verification verification, DKIMSignature signature)
headers
- body
- verification
- signature
- public javax.ws.rs.core.MultivaluedMap<String,String> verifySignature(Map headers, byte[] body, Verification verification, DKIMSignature signature) throws SignatureException
SignatureException
Copyright © 2016 JBoss by Red Hat. All rights reserved.