public class IPSECKEYRecord extends Record
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.
|
Constructor and Description |
---|
IPSECKEYRecord(Name name,
int dclass,
long ttl,
int precedence,
int gatewayType,
int algorithmType,
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.
|
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 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, 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 IPSECKEYRecord(Name name, int dclass, long ttl, int precedence, int gatewayType, int algorithmType, 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 IOException
Record
rrFromWire
in class Record
IOException
protected void rdataFromString(Tokenizer st, Name origin) throws IOException
Record
rdataFromString
in class Record
IOException
protected String rrToString()
Record
rrToString
in class Record
public int getPrecedence()
public int getGatewayType()
public int getAlgorithmType()
public Object getGateway()
public byte[] getKey()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record
Copyright © 2022 dnsjava.org. All rights reserved.