Package org.minidns.record
Class DelegatingDnssecRR
java.lang.Object
org.minidns.record.Data
org.minidns.record.DelegatingDnssecRR
public abstract class DelegatingDnssecRR extends Data
DS (Delegation Signer) record payload.
- See Also:
- RFC 4034 ยง 5
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDelegatingDnssecRR.SharedData -
Field Summary
Fields Modifier and Type Field Description DnssecConstants.SignatureAlgorithmalgorithmThe cryptographic algorithm used to create the signature.bytealgorithmByteThe byte value of the cryptographic algorithm used to create the signature.protected byte[]digestThe digest build from a DNSKEY.DnssecConstants.DigestAlgorithmdigestTypeThe algorithm used to construct the digest.bytedigestTypeByteThe byte value of algorithm used to construct the digest.intkeyTagThe key tag value of the DNSKEY RR that validates this signature. -
Constructor Summary
Constructors Modifier Constructor Description protectedDelegatingDnssecRR(int keyTag, byte algorithm, byte digestType, byte[] digest)protectedDelegatingDnssecRR(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, byte digestType, byte[] digest)protectedDelegatingDnssecRR(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, byte algorithmByte, DnssecConstants.DigestAlgorithm digestType, byte digestTypeByte, byte[] digest)protectedDelegatingDnssecRR(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, DnssecConstants.DigestAlgorithm digestType, byte[] digest) -
Method Summary
Modifier and Type Method Description booleandigestEquals(byte[] otherDigest)BigIntegergetDigestBigInteger()StringgetDigestHex()protected static DelegatingDnssecRR.SharedDataparseSharedData(DataInputStream dis, int length)voidserialize(DataOutputStream dos)The internal method used to serialize Data subclasses.StringtoString()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
-
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
-
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
-
parseSharedData
protected static DelegatingDnssecRR.SharedData parseSharedData(DataInputStream dis, int length) throws IOException- Throws:
IOException
-
serialize
Description copied from class:DataThe internal method used to serialize Data subclasses.- Specified by:
serializein 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)
-