org.xbill.DNS
Class DNSSEC

java.lang.Object
  extended by org.xbill.DNS.DNSSEC

public class DNSSEC
extends Object

Constants and functions relating to DNSSEC (algorithm constants). DNSSEC provides authentication for DNS information. RRsets are signed by an appropriate key, and a SIG record is added to the set. A KEY record is obtained from DNS and used to validate the signature, The KEY record must also be validated or implicitly trusted - to validate a key requires a series of validations leading to a trusted key. The key must also be authorized to sign the data.

Author:
Brian Wellington
See Also:
SIGRecord, KEYRecord, RRset

Nested Class Summary
static class DNSSEC.Algorithm
           
 
Field Summary
static int DH
           
static int DSA
           
static int Failed
           
static int Insecure
           
static int RSA
           
static int RSAMD5
           
static int RSASHA1
           
static int Secure
           
 
Method Summary
static byte[] digestMessage(SIGRecord sig, Message msg, byte[] previous)
          Creates a byte array containing the concatenation of the fields of the SIG record and the message to be signed/verified.
static byte[] digestRRset(RRSIGRecord sig, RRset rrset)
          Creates a byte array containing the concatenation of the fields of the SIG record and the RRsets to be signed/verified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RSAMD5

public static final int RSAMD5
See Also:
Constant Field Values

RSA

public static final int RSA
See Also:
Constant Field Values

DH

public static final int DH
See Also:
Constant Field Values

DSA

public static final int DSA
See Also:
Constant Field Values

RSASHA1

public static final int RSASHA1
See Also:
Constant Field Values

Failed

public static final int Failed
See Also:
Constant Field Values

Insecure

public static final int Insecure
See Also:
Constant Field Values

Secure

public static final int Secure
See Also:
Constant Field Values
Method Detail

digestRRset

public static byte[] digestRRset(RRSIGRecord sig,
                                 RRset rrset)
Creates a byte array containing the concatenation of the fields of the SIG record and the RRsets to be signed/verified. This does not perform a cryptographic digest.

Parameters:
sig - The SIG record used to sign/verify the rrset.
rrset - The data to be signed/verified.
Returns:
The data to be cryptographically signed or verified.

digestMessage

public static byte[] digestMessage(SIGRecord sig,
                                   Message msg,
                                   byte[] previous)
Creates a byte array containing the concatenation of the fields of the SIG record and the message to be signed/verified. This does not perform a cryptographic digest.

Parameters:
sig - The SIG record used to sign/verify the rrset.
msg - The message to be signed/verified.
previous - If this is a response, the signature from the query.
Returns:
The data to be cryptographically signed or verified.