public class DNSKEYRecord extends Record
DNSSEC,
RFC 4034: Resource Records for the DNS
Security Extensions| Modifier and Type | Class and Description |
|---|---|
static class |
DNSKEYRecord.Flags |
static class |
DNSKEYRecord.Protocol |
| Modifier and Type | Field and Description |
|---|---|
protected int |
alg |
protected int |
flags |
protected int |
footprint |
protected byte[] |
key |
protected int |
proto |
protected PublicKey |
publicKey |
| Modifier | Constructor and Description |
|---|---|
protected |
DNSKEYRecord(Name name,
int type,
int dclass,
long ttl,
int flags,
int proto,
int alg,
byte[] key)
Creates a DNSKEY Record from the given data
|
|
DNSKEYRecord(Name name,
int dclass,
long ttl,
int flags,
int proto,
int alg,
byte[] key)
Creates a DNSKEY Record from the given data
|
|
DNSKEYRecord(Name name,
int dclass,
long ttl,
int flags,
int proto,
int alg,
PublicKey key)
Creates a DNSKEY Record from the given data
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAlgorithm()
Returns the key's algorithm
|
int |
getFlags()
Returns the flags describing the key's properties
|
int |
getFootprint()
Returns the key's footprint (after computing it)
|
byte[] |
getKey()
Returns the binary data representing the key
|
int |
getProtocol()
Returns the protocol that the key was created for
|
PublicKey |
getPublicKey()
Returns a PublicKey corresponding to the data in this key.
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected String |
rrToString()
Converts the DNSKEY/KEY Record to a String
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overriden
|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withNameprotected int flags
protected int proto
protected int alg
protected byte[] key
protected int footprint
protected PublicKey publicKey
protected DNSKEYRecord(Name name, int type, int dclass, long ttl, int flags, int proto, int alg, byte[] key)
flags - Flags describing the key's propertiesproto - The protocol that the key was created foralg - The key's algorithmkey - Binary representation of the keypublic DNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg, byte[] key)
flags - Flags describing the key's propertiesproto - The protocol that the key was created foralg - The key's algorithmkey - Binary representation of the keypublic DNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg, PublicKey key) throws DNSSEC.DNSSECException
flags - Flags describing the key's propertiesproto - The protocol that the key was created foralg - The key's algorithmkey - The key as a PublicKeyDNSSEC.DNSSECException - The PublicKey could not be converted into DNS format.protected void rdataFromString(Tokenizer st, Name origin) throws IOException
RecordrdataFromString in class RecordIOExceptionprotected void rrFromWire(DNSInput in) throws IOException
RecordrrFromWire in class RecordIOExceptionprotected String rrToString()
rrToString in class Recordpublic int getFlags()
public int getProtocol()
public int getAlgorithm()
public byte[] getKey()
public int getFootprint()
public PublicKey getPublicKey() throws DNSSEC.DNSSECException
DNSSEC.DNSSECException - The key could not be converted.protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
RecordCopyright © 2021 dnsjava.org. All rights reserved.