public abstract class DelegatingDnssecRR extends Data
Modifier and Type | Class and Description |
---|---|
protected static class |
DelegatingDnssecRR.SharedData |
Modifier and Type | Field and Description |
---|---|
DnssecConstants.SignatureAlgorithm |
algorithm
The cryptographic algorithm used to create the signature.
|
byte |
algorithmByte
The byte value of the cryptographic algorithm used to create the signature.
|
protected byte[] |
digest
The digest build from a DNSKEY.
|
DnssecConstants.DigestAlgorithm |
digestType
The algorithm used to construct the digest.
|
byte |
digestTypeByte
The byte value of algorithm used to construct the digest.
|
int |
keyTag
The key tag value of the DNSKEY RR that validates this signature.
|
Modifier | Constructor and Description |
---|---|
protected |
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) |
Modifier and Type | Method and Description |
---|---|
boolean |
digestEquals(byte[] otherDigest) |
BigInteger |
getDigestBigInteger() |
String |
getDigestHex() |
protected static DelegatingDnssecRR.SharedData |
parseSharedData(DataInputStream dis,
int length) |
void |
serialize(DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
String |
toString() |
equals, getType, hashCode, length, toByteArray, toOutputStream
public final int keyTag
public final DnssecConstants.SignatureAlgorithm algorithm
null
.algorithmByte
public final byte algorithmByte
public final DnssecConstants.DigestAlgorithm digestType
null
.digestTypeByte
public final byte digestTypeByte
protected final byte[] digest
protected DelegatingDnssecRR(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, byte algorithmByte, DnssecConstants.DigestAlgorithm digestType, byte digestTypeByte, byte[] digest)
protected DelegatingDnssecRR(int keyTag, byte algorithm, byte digestType, byte[] digest)
protected DelegatingDnssecRR(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, DnssecConstants.DigestAlgorithm digestType, byte[] digest)
protected DelegatingDnssecRR(int keyTag, DnssecConstants.SignatureAlgorithm algorithm, byte digestType, byte[] digest)
protected static DelegatingDnssecRR.SharedData parseSharedData(DataInputStream dis, int length) throws IOException
IOException
public void serialize(DataOutputStream dos) throws IOException
Data
serialize
in class Data
dos
- the output stream to serialize to.IOException
- if an I/O error occurs.public BigInteger getDigestBigInteger()
public String getDigestHex()
public boolean digestEquals(byte[] otherDigest)