public class TKEYRecord extends Record
TSIG
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
DELETE
The key should be deleted
|
static int |
DIFFIEHELLMAN
The key is computed using a Diffie-Hellman key exchange
|
static int |
GSSAPI
The key is computed using GSS_API (unimplemented)
|
static int |
RESOLVERASSIGNED
The key is assigned by the resolver (unimplemented)
|
static int |
SERVERASSIGNED
The key is assigned by the server (unimplemented)
|
Constructor and Description |
---|
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)
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.util.Date |
getTimeExpire()
Returns the end of the validity period of the shared secret or
keying material
|
java.util.Date |
getTimeInception()
Returns the beginning of the validity period of the shared secret or
keying material
|
protected java.lang.String |
modeString() |
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, withName
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
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 java.lang.String modeString()
public Name getAlgorithm()
public java.util.Date getTimeInception()
public java.util.Date getTimeExpire()
public int getMode()
public int getError()
public byte[] getKey()
public byte[] getOther()
Copyright © 2019 dnsjava.org. All rights reserved.