Modifier and Type | Class and Description |
---|---|
static class |
IPSECKEYRecord.Algorithm
Algorithm types for IPSECKEY RRs as defined in IPSECKEY
Resource Record Parameters.
|
static class |
IPSECKEYRecord.Gateway
Gateway types for IPSECKEY RRs as defined in IPSECKEY
Resource Record Parameters.
|
Modifier and Type | Field and Description |
---|---|
private int |
algorithmType |
private java.lang.Object |
gateway |
private int |
gatewayType |
private byte[] |
key |
private int |
precedence |
Constructor and Description |
---|
IPSECKEYRecord() |
IPSECKEYRecord(Name name,
int dclass,
long ttl,
int precedence,
int gatewayType,
int algorithmType,
java.lang.Object gateway,
byte[] key)
Creates an IPSECKEY Record from the given data.
|
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithmType()
Returns the record's algorithm type.
|
java.lang.Object |
getGateway()
Returns the record's gateway.
|
int |
getGatewayType()
Returns the record's gateway type.
|
byte[] |
getKey()
Returns the record's public key
|
int |
getPrecedence()
Returns the record's precedence.
|
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 the type-specific RR to text format - must be overridden.
|
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, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
private int precedence
private int gatewayType
private int algorithmType
private java.lang.Object gateway
private byte[] key
IPSECKEYRecord()
public IPSECKEYRecord(Name name, int dclass, long ttl, int precedence, int gatewayType, int algorithmType, java.lang.Object gateway, byte[] key)
precedence
- The record's precedence.gatewayType
- The record's gateway type.algorithmType
- The record's algorithm type.gateway
- The record's gateway.key
- The record's public key.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 rrToString()
Record
rrToString
in class Record
public int getPrecedence()
public int getGatewayType()
public int getAlgorithmType()
public java.lang.Object getGateway()
public byte[] getKey()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record