abstract class KEYBase extends Record
Modifier and Type | Field and Description |
---|---|
protected int |
alg |
protected int |
flags |
protected int |
footprint |
protected byte[] |
key |
protected int |
proto |
protected java.security.PublicKey |
publicKey |
Modifier | Constructor and Description |
---|---|
protected |
KEYBase() |
|
KEYBase(Name name,
int type,
int dclass,
long ttl,
int flags,
int proto,
int alg,
byte[] key) |
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
|
java.security.PublicKey |
getPublicKey()
Returns a PublicKey corresponding to the data in this key.
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected java.lang.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 overridden.
|
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataFromString, rdataToString, rdataToWireCanonical, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
protected int flags
protected int proto
protected int alg
protected byte[] key
protected int footprint
protected java.security.PublicKey publicKey
protected KEYBase()
public KEYBase(Name name, int type, int dclass, long ttl, int flags, int proto, int alg, byte[] key)
protected void rrFromWire(DNSInput in) throws java.io.IOException
Record
rrFromWire
in class Record
java.io.IOException
protected java.lang.String rrToString()
rrToString
in class Record
public int getFlags()
public int getProtocol()
public int getAlgorithm()
public byte[] getKey()
public int getFootprint()
public java.security.PublicKey getPublicKey() throws DNSSEC.DNSSECException
DNSSEC.DNSSECException
- The key could not be converted.protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record