org.xbill.DNS.security
Class DSASignature

java.lang.Object
  extended by org.xbill.DNS.security.DSASignature

public class DSASignature
extends Object

Converts DSA signatures between the RRSIG/SIG record format (as specified in RFC 2536) and the format used by Java DSA routines (DER-encoded).

Author:
Brian Wellington

Method Summary
static byte[] fromDNS(byte[] sig)
          Converts the signature field in a SIG record to the format expected by the DSA verification routines.
static byte[] toDNS(DSAParams params, byte[] sig)
          Converts the signature generated by DSA signature routines to the one expected inside an RRSIG/SIG record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromDNS

public static byte[] fromDNS(byte[] sig)
Converts the signature field in a SIG record to the format expected by the DSA verification routines.


toDNS

public static byte[] toDNS(DSAParams params,
                           byte[] sig)
                    throws SignatureException
Converts the signature generated by DSA signature routines to the one expected inside an RRSIG/SIG record.

Throws:
SignatureException