Package org.minidns.record
Class DelegatingDnssecRR
java.lang.Object
org.minidns.record.Data
org.minidns.record.DelegatingDnssecRR
DS (Delegation Signer) record payload.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionThe cryptographic algorithm used to create the signature.final byte
The 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 byte
The byte value of algorithm used to construct the digest.final int
The key tag value of the DNSKEY RR that validates this signature. -
Constructor Summary
ModifierConstructorDescriptionprotected
DelegatingDnssecRR
(int keyTag, byte algorithm, byte digestType, byte[] digest) protected
DelegatingDnssecRR
(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, byte digestType, byte[] digest) protected
DelegatingDnssecRR
(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, byte algorithmByte, DnssecConstants.DigestAlgorithm digestType, byte digestTypeByte, byte[] digest) protected
DelegatingDnssecRR
(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, DnssecConstants.DigestAlgorithm digestType, byte[] digest) -
Method Summary
Modifier and TypeMethodDescriptionboolean
digestEquals
(byte[] otherDigest) protected static DelegatingDnssecRR.SharedData
parseSharedData
(DataInputStream dis, int length) void
The internal method used to serialize Data subclasses.toString()
Methods inherited from class org.minidns.record.Data
equals, getType, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
Field Details
-
keyTag
public final int keyTagThe key tag value of the DNSKEY RR that validates this signature. -
algorithm
The cryptographic algorithm used to create the signature. If MiniDNS isn't aware of the signature algorithm, then this field will benull
.- See Also:
-
algorithmByte
public final byte algorithmByteThe byte value of the cryptographic algorithm used to create the signature. -
digestType
The algorithm used to construct the digest. If MiniDNS isn't aware of the digest algorithm, then this field will benull
.- See Also:
-
digestTypeByte
public final byte digestTypeByteThe byte value of algorithm used to construct the digest. -
digest
protected final byte[] digestThe digest build from a DNSKEY.
-
-
Constructor Details
-
DelegatingDnssecRR
protected DelegatingDnssecRR(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, byte algorithmByte, DnssecConstants.DigestAlgorithm digestType, byte digestTypeByte, byte[] digest) -
DelegatingDnssecRR
protected DelegatingDnssecRR(int keyTag, byte algorithm, byte digestType, byte[] digest) -
DelegatingDnssecRR
protected DelegatingDnssecRR(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, DnssecConstants.DigestAlgorithm digestType, byte[] digest) -
DelegatingDnssecRR
protected DelegatingDnssecRR(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, byte digestType, byte[] digest)
-
-
Method Details
-
serialize
Description copied from class:Data
The internal method used to serialize Data subclasses.- Specified by:
serialize
in classData
- Parameters:
dos
- the output stream to serialize to.- Throws:
IOException
- if an I/O error occurs.
-
toString
-
getDigestBigInteger
-
getDigestHex
-
digestEquals
public boolean digestEquals(byte[] otherDigest)