Home | History | Annotate | Download | only in DNS

Lines Matching refs:signature

178  * @param previous If this is a response, the signature from the query.
233 "does not match signature " +
241 * A DNSSEC verification failed because the signature has expired.
247 super("signature expired");
253 * @return When the signature expired
270 * A DNSSEC verification failed because the signature has not yet become valid.
276 super("signature is not yet valid");
282 * @return When the signature will become valid
299 * A DNSSEC verification failed because the cryptographic signature
304 super("signature verification failed");
612 DSASignaturetoDNS(byte [] signature, int t) throws IOException {
613 DNSInput in = new DNSInput(signature);
651 ECDSASignaturefromDNS(byte [] signature, ECKeyInfo keyinfo)
654 if (signature.length != keyinfo.length * 2)
657 DNSInput in = new DNSInput(signature);
689 ECDSASignaturetoDNS(byte [] signature, ECKeyInfo keyinfo) throws IOException {
690 DNSInput in = new DNSInput(signature);
726 verify(PublicKey key, int alg, byte [] data, byte [] signature)
731 signature = DSASignaturefromDNS(signature);
740 signature = ECDSASignaturefromDNS(signature,
744 signature = ECDSASignaturefromDNS(signature,
757 Signature s = Signature.getInstance(algString(alg));
760 if (!s.verify(signature))
777 * Verify a DNSSEC signature.
779 * @param rrsig The RRSIG record containing the signature.
780 * @param key The DNSKEY record to verify the signature with.
783 * @throws KeyMismatchException The key and signature do not match
784 * @throws SignatureExpiredException The signature has expired
785 * @throws SignatureNotYetValidException The signature is not yet valid
786 * @throws SignatureVerificationException The signature does not verify.
810 byte [] signature;
812 Signature s;
814 s = Signature.getInstance(algString(alg), provider);
816 s = Signature.getInstance(algString(alg));
819 signature = s.sign();
830 signature = DSASignaturetoDNS(signature, t);
839 signature = ECDSASignaturetoDNS(signature,
843 signature = ECDSASignaturetoDNS(signature,
855 return signature;
885 * Generate a DNSSEC signature. key and privateKey must refer to the
895 * @return The generated signature
905 * Generate a DNSSEC signature. key and privateKey must refer to the
917 * @return The generated signature