Modifier and Type | Field and Description |
---|---|
private Name |
alg |
static int |
DELETE
The key should be deleted
|
static int |
DIFFIEHELLMAN
The key is computed using a Diffie-Hellman key exchange
|
private int |
error |
static int |
GSSAPI
The key is computed using GSS_API (unimplemented)
|
private byte[] |
key |
private int |
mode |
private byte[] |
other |
static int |
RESOLVERASSIGNED
The key is assigned by the resolver (unimplemented)
|
static int |
SERVERASSIGNED
The key is assigned by the server (unimplemented)
|
private java.time.Instant |
timeExpire |
private java.time.Instant |
timeInception |
Constructor and Description |
---|
TKEYRecord() |
TKEYRecord(Name name,
int dclass,
long ttl,
Name alg,
java.util.Date timeInception,
java.util.Date timeExpire,
int mode,
int error,
byte[] key,
byte[] other)
|
TKEYRecord(Name name,
int dclass,
long ttl,
Name alg,
java.time.Instant timeInception,
java.time.Instant timeExpire,
int mode,
int error,
byte[] key,
byte[] other)
Creates a TKEY Record from the given data.
|
Modifier and Type | Method and Description |
---|---|
Name |
getAlgorithm()
Returns the shared key's algorithm
|
int |
getError()
Returns the extended error
|
byte[] |
getKey()
Returns the shared secret or keying material
|
int |
getMode()
Returns the key agreement mode
|
byte[] |
getOther()
Returns the other data
|
java.time.Instant |
getTimeExpire()
Returns the end of the validity period of the shared secret or keying material
|
java.time.Instant |
getTimeInception()
Returns the beginning of the validity period of the shared secret or keying material
|
protected java.lang.String |
modeString() |
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 java.lang.String |
rrToString()
Converts rdata 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, rdataToString, rdataToWireCanonical, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
private Name alg
private java.time.Instant timeInception
private java.time.Instant timeExpire
private int mode
private int error
private byte[] key
private byte[] other
public static final int SERVERASSIGNED
public static final int DIFFIEHELLMAN
public static final int GSSAPI
public static final int RESOLVERASSIGNED
public static final int DELETE
TKEYRecord()
public TKEYRecord(Name name, int dclass, long ttl, Name alg, java.time.Instant timeInception, java.time.Instant timeExpire, int mode, int error, byte[] key, byte[] other)
alg
- The shared key's algorithmtimeInception
- The beginning of the validity period of the shared secret or keying
materialtimeExpire
- The end of the validity period of the shared secret or keying materialmode
- The mode of key agreementerror
- The extended error field. Should be 0 in querieskey
- The shared secretother
- The other data field. Currently unused responses.@Deprecated public TKEYRecord(Name name, int dclass, long ttl, Name alg, java.util.Date timeInception, java.util.Date timeExpire, int mode, int error, byte[] key, byte[] other)
alg
- The shared key's algorithmtimeInception
- The beginning of the validity period of the shared secret or keying
materialtimeExpire
- The end of the validity period of the shared secret or keying materialmode
- The mode of key agreementerror
- The extended error field. Should be 0 in querieskey
- The shared secretother
- The other data field. Currently unused responses.protected void rrFromWire(DNSInput in) throws java.io.IOException
Record
rrFromWire
in class Record
java.io.IOException
protected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
Record
rdataFromString
in class Record
java.io.IOException
protected java.lang.String modeString()
protected java.lang.String rrToString()
rrToString
in class Record
public Name getAlgorithm()
public java.time.Instant getTimeInception()
public java.time.Instant getTimeExpire()
public int getMode()
public int getError()
public byte[] getKey()
public byte[] getOther()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record