|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.SIG0
public class SIG0
Creates SIG(0) transaction signatures.
Method Summary | |
---|---|
static void |
signMessage(Message message,
KEYRecord key,
java.security.PrivateKey privkey,
SIGRecord previous)
Sign a message with SIG(0). |
static void |
verifyMessage(Message message,
byte[] b,
KEYRecord key,
SIGRecord previous)
Verify a message using SIG(0). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void signMessage(Message message, KEYRecord key, java.security.PrivateKey privkey, SIGRecord previous) throws DNSSEC.DNSSECException
message
- The message to be signedkey
- The DNSKEY record to use as part of signingprivkey
- The PrivateKey to use when signingprevious
- If this message is a response, the SIG(0) from the query
DNSSEC.DNSSECException
public static void verifyMessage(Message message, byte[] b, KEYRecord key, SIGRecord previous) throws DNSSEC.DNSSECException
message
- The message to be signedb
- An array containing the message in unparsed form. This is
necessary since SIG(0) signs the message in wire format, and we can't
recreate the exact wire format (with the same name compression).key
- The KEY record to verify the signature with.previous
- If this message is a response, the SIG(0) from the query
DNSSEC.DNSSECException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |