Package org.xbill.DNS
Class HIPRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.HIPRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Host Identity Protocol (HIP) Record as defined in RFC 8005.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionintGets the PK algorithm number as defined in IPSECKEY Resource Record Parametersbyte[]getHit()byte[]getKey()Gets the raw public key bytes.Gets the public key of this RR as a JavaPublicKey.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
-
HIPRecord
-
HIPRecord
-
HIPRecord
public HIPRecord(Name name, int dclass, long ttl, byte[] hit, int alg, PublicKey key, List<Name> servers) throws DNSSEC.DNSSECException - Throws:
DNSSEC.DNSSECException
-
HIPRecord
public HIPRecord(Name name, int dclass, long ttl, byte[] hit, int alg, PublicKey key) throws DNSSEC.DNSSECException - Throws:
DNSSEC.DNSSECException
-
-
Method Details
-
getHit
public byte[] getHit() -
getAlgorithm
public int getAlgorithm()Gets the PK algorithm number as defined in IPSECKEY Resource Record Parameters- See Also:
-
getKey
public byte[] getKey()Gets the raw public key bytes. The format is defined bygetAlgorithm(). -
getPublicKey
Gets the public key of this RR as a JavaPublicKey. Only supported for RSA/DSA PK algorithm (ECDSA lacks the information about which curve is used).- Throws:
DNSSEC.DNSSECException
-
getRvServers
-
rrToString
Description copied from class:RecordConverts the type-specific RR to text format - must be overridden.- Specified by:
rrToStringin classRecord
-
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
-
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden. -
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-