Package org.xbill.DNS
Class DLVRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.DLVRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
DLV - contains a Delegation Lookaside Validation record, which acts as the equivalent of a DS
record in a lookaside zone.
- Author:
- David Blacka, Brian Wellington
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the key's algorithm.byte[]Returns the binary hash of the key.intReturns the key's Digest ID.intReturns the key's footprint.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 rdata to a Stringprotected 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
-
Field Details
-
SHA1_DIGEST_ID
Deprecated.SHA1 digest ID for DLV records.- See Also:
-
SHA256_DIGEST_ID
Deprecated.SHA256 digest ID for DLV records.- See Also:
-
-
Constructor Details
-
DLVRecord
public DLVRecord(Name name, int dclass, long ttl, int footprint, int alg, int digestid, byte[] digest) Creates a DLV Record from the given data- Parameters:
footprint- The original KEY record's footprint (keyid).alg- The original key algorithm.digestid- The digest id code.digest- A hash of the original 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
Converts rdata to a String- Specified by:
rrToStringin classRecord
-
getAlgorithm
public int getAlgorithm()Returns the key's algorithm. -
getDigestID
public int getDigestID()Returns the key's Digest ID. -
getDigest
public byte[] getDigest()Returns the binary hash of the key. -
getFootprint
public int getFootprint()Returns the key's footprint. -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-
DNSSEC.Digest.SHA1