Package org.xbill.DNS
Class IPSECKEYRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.IPSECKEYRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
IPsec Keying Material (RFC 4025)
- Author:
- Brian Wellington
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAlgorithm types for IPSECKEY RRs as defined in IPSECKEY Resource Record Parameters.static classGateway types for IPSECKEY RRs as defined in IPSECKEY Resource Record Parameters. -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionIPSECKEYRecord(Name name, int dclass, long ttl, int precedence, int gatewayType, int algorithmType, Object gateway, byte[] key) Creates an IPSECKEY Record from the given data. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the record's algorithm type.Returns the record's gateway.intReturns the record's gateway type.byte[]getKey()Returns the record's public keyintReturns the record's precedence.protected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts the type-specific RR to text format - must be overridden.protected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
IPSECKEYRecord
public 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.- Parameters:
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.
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Description copied from class:RecordConverts the type-specific RR to text format - must be overridden.- Specified by:
rrToStringin classRecord
-
getPrecedence
public int getPrecedence()Returns the record's precedence. -
getGatewayType
public int getGatewayType()Returns the record's gateway type. -
getAlgorithmType
public int getAlgorithmType()Returns the record's algorithm type. -
getGateway
Returns the record's gateway. -
getKey
public byte[] getKey()Returns the record's public key -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-