Package org.minidns.dnssec.algorithms
Class JavaSecSignatureVerifier
java.lang.Object
org.minidns.dnssec.algorithms.JavaSecSignatureVerifier
- All Implemented Interfaces:
SignatureVerifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PublicKey
getPublicKey
(DNSKEY key) protected abstract byte[]
getSignature
(RRSIG rrsig) boolean
-
Constructor Details
-
JavaSecSignatureVerifier
public JavaSecSignatureVerifier(String keyAlgorithm, String signatureAlgorithm) throws NoSuchAlgorithmException - Throws:
NoSuchAlgorithmException
-
-
Method Details
-
getKeyFactory
-
verify
public boolean verify(byte[] content, RRSIG rrsig, DNSKEY key) throws DnssecValidationFailedException - Specified by:
verify
in interfaceSignatureVerifier
- Throws:
DnssecValidationFailedException
-
getSignature
protected abstract byte[] getSignature(RRSIG rrsig) throws DnssecValidationFailedException.DataMalformedException -
getPublicKey
protected abstract PublicKey getPublicKey(DNSKEY key) throws DnssecValidationFailedException.DataMalformedException, DnssecValidationFailedException.DnssecInvalidKeySpecException
-