java.lang.Object
org.minidns.record.Data
org.minidns.record.DelegatingDnssecRR
org.minidns.record.DLV
DNS DLV (DNSSEC Lookaside Validation) record payload.
Provides DNSSEC trust anchors from external validation repositories. Has same format as DS records but used for lookaside validation.
Provides DNSSEC trust anchors from external validation repositories. Has same format as DS records but used for lookaside validation.
- See Also:
Nested Class Summary
Nested classes/interfaces inherited from class DelegatingDnssecRR
DelegatingDnssecRR.SharedDataModifier and TypeClassDescriptionprotected static final classThe fixed fields read out of a delegation record, before it is interpreted.Field Summary
Fields inherited from class DelegatingDnssecRR
algorithm, algorithmByte, digest, digestType, digestTypeByte, keyTagModifier and TypeFieldDescriptionThe cryptographic algorithm used to create the signature.final byteThe byte value of the cryptographic algorithm used to create the signature.protected final byte[]The digest build from a DNSKEY.The algorithm used to construct the digest.final byteThe byte value of algorithm used to construct the digest.final intThe key tag value of the DNSKEY RR that validates this signature.Constructor Summary
ConstructorsConstructorDescriptionDLV(int keyTag, byte algorithm, byte digestType, byte[] digest) Create a DLV record.DLV(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, DnssecConstants.DigestAlgorithm digestType, byte[] digest) Create a DLV record with typed algorithms.Method Summary
Modifier and TypeMethodDescriptiongetType()The payload type.static DLVparse(DataInputStream dis, int length) Parse a DLV record from a data stream.Methods inherited from class DelegatingDnssecRR
digestEquals, getDigestBigInteger, getDigestHex, parseSharedData, serialize, toStringModifier and TypeMethodDescriptionbooleandigestEquals(byte[] otherDigest) Compares this record's DNSKEY digest with another byte by byte.Gets the DNSKEY digest as an unsigned big-endian integer.Gets the DNSKEY digest as upper-case hexadecimal.protected static DelegatingDnssecRR.SharedDataparseSharedData(DataInputStream dis, int length) Reads the key tag, algorithm bytes and digest that DNSSEC records share.voidWrites the key tag, algorithm bytes and digest to the wire.toString()Renders the delegation as key tag, algorithms and digest.Methods inherited from class Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStreamModifier and TypeMethodDescriptionfinal booleanfinal inthashCode()final intlength()Serialize this record, if that has not been done already, and report the resulting wire size.final byte[]Serialize this record, if that has not been done already, and return a copy of the result so callers cannot mutate the cached bytes.final voidWrite the binary representation of this payload to the givenDataOutputStream.final voidtoOutputStream(OutputStream outputStream) Write the binary representation to the given OutputStream.
Constructor Details
DLV
public DLV(int keyTag, byte algorithm, byte digestType, byte[] digest) Create a DLV record.- Parameters:
keyTag- the key tagalgorithm- the signature algorithmdigestType- the digest algorithmdigest- the digest data
DLV
public DLV(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, DnssecConstants.DigestAlgorithm digestType, byte[] digest) Create a DLV record with typed algorithms.- Parameters:
keyTag- the key tagalgorithm- the signature algorithmdigestType- the digest algorithmdigest- the digest data
Method Details
parse
Parse a DLV record from a data stream.- Parameters:
dis- the data input streamlength- the record length- Returns:
- the parsed DLV record
- Throws:
IOException- if parsing fails
getType
Description copied from class:DataThe payload type.