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