Package org.minidns.dnssec.algorithms
Class JavaSecSignatureVerifier
- java.lang.Object
-
- org.minidns.dnssec.algorithms.JavaSecSignatureVerifier
-
- All Implemented Interfaces:
SignatureVerifier
public abstract class JavaSecSignatureVerifier extends Object implements SignatureVerifier
-
-
Constructor Summary
Constructors Constructor Description JavaSecSignatureVerifier(String keyAlgorithm, String signatureAlgorithm)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description KeyFactory
getKeyFactory()
protected abstract PublicKey
getPublicKey(DNSKEY key)
protected abstract byte[]
getSignature(RRSIG rrsig)
boolean
verify(byte[] content, RRSIG rrsig, DNSKEY key)
-
-
-
Constructor Detail
-
JavaSecSignatureVerifier
public JavaSecSignatureVerifier(String keyAlgorithm, String signatureAlgorithm) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-
Method Detail
-
getKeyFactory
public KeyFactory 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
-
-