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 - list of signaturesheaders - headers mapbody - bodyVerificationResultspublic VerificationResult verify(Map headers, byte[] body, Verification verification, DKIMSignature signature)
headers - headers mapbody - bodyverification - verificationsignature - signatureVerificationResultpublic javax.ws.rs.core.MultivaluedMap<String,String> verifySignature(Map headers, byte[] body, Verification verification, DKIMSignature signature) throws SignatureException
SignatureExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.