Package | Description |
---|---|
org.xbill.DNS |
Modifier and Type | Class and Description |
---|---|
static class |
DNSSEC.KeyMismatchException
A DNSSEC verification failed because fields in the DNSKEY and RRSIG records do not match.
|
static class |
DNSSEC.MalformedKeyException
The cryptographic data in a DNSSEC key is malformed.
|
static class |
DNSSEC.NoSignatureException
No signature was found.
|
static class |
DNSSEC.SignatureExpiredException
A DNSSEC verification failed because the signature has expired.
|
static class |
DNSSEC.SignatureNotYetValidException
A DNSSEC verification failed because the signature has not yet become valid.
|
static class |
DNSSEC.SignatureVerificationException
A DNSSEC verification failed because the cryptographic signature verification failed.
|
static class |
DNSSEC.UnsupportedAlgorithmException
An algorithm is unsupported by this DNSSEC implementation.
|
Modifier and Type | Method and Description |
---|---|
private static byte[] |
DNSSEC.dsaSignatureFromDNS(byte[] signature,
int keyLength,
boolean skipT) |
(package private) static byte[] |
DNSSEC.fromPublicKey(java.security.PublicKey key,
int alg)
Builds a DNSKEY record from a PublicKey
|
java.security.PublicKey |
HIPRecord.getPublicKey()
Gets the public key of this RR as a Java
PublicKey . |
java.security.PublicKey |
KEYBase.getPublicKey()
Returns a PublicKey corresponding to the data in this key.
|
(package private) static byte[] |
DNSSEC.sign(java.security.PrivateKey privkey,
java.security.PublicKey pubkey,
int alg,
byte[] data,
java.lang.String provider) |
static RRSIGRecord |
DNSSEC.sign(RRset rrset,
DNSKEYRecord key,
java.security.PrivateKey privkey,
java.util.Date inception,
java.util.Date expiration)
Deprecated.
|
static RRSIGRecord |
DNSSEC.sign(RRset rrset,
DNSKEYRecord key,
java.security.PrivateKey privkey,
java.util.Date inception,
java.util.Date expiration,
java.lang.String provider)
|
static RRSIGRecord |
DNSSEC.sign(RRset rrset,
DNSKEYRecord key,
java.security.PrivateKey privkey,
java.time.Instant inception,
java.time.Instant expiration)
Generate a DNSSEC signature.
|
static RRSIGRecord |
DNSSEC.sign(RRset rrset,
DNSKEYRecord key,
java.security.PrivateKey privkey,
java.time.Instant inception,
java.time.Instant expiration,
java.lang.String provider)
Generate a DNSSEC signature.
|
static void |
SIG0.signMessage(Message message,
KEYRecord key,
java.security.PrivateKey privkey,
SIGRecord previous)
Sign a message with SIG(0).
|
static void |
SIG0.signMessage(Message message,
KEYRecord key,
java.security.PrivateKey privkey,
SIGRecord previous,
java.time.Instant timeSigned)
Sign a message with SIG(0).
|
(package private) static SIGRecord |
DNSSEC.signMessage(Message message,
SIGRecord previous,
KEYRecord key,
java.security.PrivateKey privkey,
java.time.Instant inception,
java.time.Instant expiration) |
(package private) static java.security.PublicKey |
DNSSEC.toPublicKey(int alg,
byte[] key,
Record r)
Converts a KEY/DNSKEY record into a PublicKey
|
(package private) static java.security.PublicKey |
DNSSEC.toPublicKey(KEYBase r)
Converts a KEY/DNSKEY record into a PublicKey
|
private static void |
DNSSEC.verify(java.security.PublicKey key,
int alg,
byte[] data,
byte[] signature) |
static void |
DNSSEC.verify(RRset rrset,
RRSIGRecord rrsig,
DNSKEYRecord key)
Verify a DNSSEC signature.
|
static void |
DNSSEC.verify(RRset rrset,
RRSIGRecord rrsig,
DNSKEYRecord key,
java.util.Date date)
Deprecated.
|
static void |
DNSSEC.verify(RRset rrset,
RRSIGRecord rrsig,
DNSKEYRecord key,
java.time.Instant date)
Verify a DNSSEC signature.
|
static void |
SIG0.verifyMessage(Message message,
byte[] b,
KEYRecord key,
SIGRecord previous)
Verify a message using SIG(0).
|
static void |
SIG0.verifyMessage(Message message,
byte[] b,
KEYRecord key,
SIGRecord previous,
java.time.Instant now)
Verify a message using SIG(0).
|
(package private) static void |
DNSSEC.verifyMessage(Message message,
byte[] bytes,
SIGRecord sig,
SIGRecord previous,
KEYRecord key,
java.time.Instant now) |
Constructor and Description |
---|
CDNSKEYRecord(Name name,
int dclass,
long ttl,
int flags,
int proto,
int alg,
java.security.PublicKey key)
Creates a CDNSKEY Record from the given data
|
DNSKEYRecord(Name name,
int dclass,
long ttl,
int flags,
int proto,
int alg,
java.security.PublicKey key)
Creates a DNSKEY Record from the given data
|
HIPRecord(Name name,
int dclass,
long ttl,
byte[] hit,
int alg,
java.security.PublicKey key) |
HIPRecord(Name name,
int dclass,
long ttl,
byte[] hit,
int alg,
java.security.PublicKey key,
java.util.List<Name> servers) |
KEYRecord(Name name,
int dclass,
long ttl,
int flags,
int proto,
int alg,
java.security.PublicKey key)
Creates a KEY Record from the given data
|