| java.lang.Object org.xbill.DNS.Record org.xbill.DNS.TKEYRecord
TKEYRecord | public class TKEYRecord extends Record (Code) | | Transaction Key - used to compute and/or securely transport a shared
secret to be used with TSIG.
See Also: TSIG author: Brian Wellington |
Constructor Summary | |
| TKEYRecord() | public | TKEYRecord(Name name, int dclass, long ttl, Name alg, Date timeInception, Date timeExpire, int mode, int error, byte[] key, byte other) Creates a TKEY Record from the given data.
Parameters: alg - The shared key's algorithm Parameters: timeInception - The beginning of the validity period of the sharedsecret or keying material Parameters: timeExpire - The end of the validity period of the sharedsecret or keying material Parameters: mode - The mode of key agreement Parameters: error - The extended error field. |
DELETE | final public static int DELETE(Code) | | The key should be deleted
|
DIFFIEHELLMAN | final public static int DIFFIEHELLMAN(Code) | | The key is computed using a Diffie-Hellman key exchange
|
GSSAPI | final public static int GSSAPI(Code) | | The key is computed using GSS_API (unimplemented)
|
RESOLVERASSIGNED | final public static int RESOLVERASSIGNED(Code) | | The key is assigned by the resolver (unimplemented)
|
SERVERASSIGNED | final public static int SERVERASSIGNED(Code) | | The key is assigned by the server (unimplemented)
|
TKEYRecord | public TKEYRecord(Name name, int dclass, long ttl, Name alg, Date timeInception, Date timeExpire, int mode, int error, byte[] key, byte other)(Code) | | Creates a TKEY Record from the given data.
Parameters: alg - The shared key's algorithm Parameters: timeInception - The beginning of the validity period of the sharedsecret or keying material Parameters: timeExpire - The end of the validity period of the sharedsecret or keying material Parameters: mode - The mode of key agreement Parameters: error - The extended error field. Should be 0 in queries Parameters: key - The shared secret Parameters: other - The other data field. Currently unusedresponses. |
getAlgorithm | public Name getAlgorithm()(Code) | | Returns the shared key's algorithm
|
getError | public int getError()(Code) | | Returns the extended error
|
getKey | public byte[] getKey()(Code) | | Returns the shared secret or keying material
|
getMode | public int getMode()(Code) | | Returns the key agreement mode
|
getOther | public byte[] getOther()(Code) | | Returns the other data
|
getTimeExpire | public Date getTimeExpire()(Code) | | Returns the end of the validity period of the shared secret or
keying material
|
getTimeInception | public Date getTimeInception()(Code) | | Returns the beginning of the validity period of the shared secret or
keying material
|
rrToString | String rrToString()(Code) | | Converts rdata to a String
|
Methods inherited from org.xbill.DNS.Record | protected static byte[] byteArrayFromString(String s) throws TextParseException(Code)(Java Doc) protected static String byteArrayToString(byte[] array, boolean quote)(Code)(Java Doc) static Name checkName(String field, Name name)(Code)(Java Doc) static int checkU16(String field, int val)(Code)(Java Doc) static long checkU32(String field, long val)(Code)(Java Doc) static int checkU8(String field, int val)(Code)(Java Doc) Record cloneRecord()(Code)(Java Doc) public int compareTo(Object o)(Code)(Java Doc) public boolean equals(Object arg)(Code)(Java Doc) public static Record fromString(Name name, int type, int dclass, long ttl, Tokenizer st, Name origin) throws IOException(Code)(Java Doc) public static Record fromString(Name name, int type, int dclass, long ttl, String s, Name origin) throws IOException(Code)(Java Doc) static Record fromWire(DNSInput in, int section, boolean isUpdate) throws IOException(Code)(Java Doc) static Record fromWire(DNSInput in, int section) throws IOException(Code)(Java Doc) public static Record fromWire(byte[] b, int section) throws IOException(Code)(Java Doc) public Name getAdditionalName()(Code)(Java Doc) public int getDClass()(Code)(Java Doc) public Name getName()(Code)(Java Doc) abstract Record getObject()(Code)(Java Doc) public int getRRsetType()(Code)(Java Doc) public long getTTL()(Code)(Java Doc) public int getType()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public static Record newRecord(Name name, int type, int dclass, long ttl, int length, byte[] data)(Code)(Java Doc) public static Record newRecord(Name name, int type, int dclass, long ttl, byte[] data)(Code)(Java Doc) public static Record newRecord(Name name, int type, int dclass, long ttl)(Code)(Java Doc) public static Record newRecord(Name name, int type, int dclass)(Code)(Java Doc) abstract void rdataFromString(Tokenizer st, Name origin) throws IOException(Code)(Java Doc) public String rdataToString()(Code)(Java Doc) public byte[] rdataToWireCanonical()(Code)(Java Doc) abstract void rrFromWire(DNSInput in) throws IOException(Code)(Java Doc) abstract String rrToString()(Code)(Java Doc) abstract void rrToWire(DNSOutput out, Compression c, boolean canonical)(Code)(Java Doc) public boolean sameRRset(Record rec)(Code)(Java Doc) void setTTL(long ttl)(Code)(Java Doc) public String toString()(Code)(Java Doc) void toWire(DNSOutput out, int section, Compression c)(Code)(Java Doc) public byte[] toWire(int section)(Code)(Java Doc) public byte[] toWireCanonical()(Code)(Java Doc) protected static String unknownToString(byte[] data)(Code)(Java Doc) Record withDClass(int dclass, long ttl)(Code)(Java Doc) public Record withName(Name name)(Code)(Java Doc)
|
|
|