Package org.minidns.record
Class DNSKEY
java.lang.Object
org.minidns.record.Data
org.minidns.record.DNSKEY
DNSKEY record payload.
-
Field Summary
Modifier and TypeFieldDescriptionThe public key's cryptographic algorithm used.final byte
The byte value of the public key's cryptographic algorithm used.static final short
Whether the record holds a revoked key.static final short
Whether the key should be used as a secure entry point key.static final short
Whether the record holds a DNS zone key.final short
final byte
Must bePROTOCOL_RFC4034
.static final byte
Use the protocol defined in RFC 4034. -
Constructor Summary
ConstructorDescriptionDNSKEY
(short flags, byte protocol, byte algorithm, byte[] key) DNSKEY
(short flags, byte protocol, DnssecConstants.SignatureAlgorithm algorithm, byte[] key) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getKey()
int
int
Retrieve the key tag identifying this DNSKEY.getType()
The payload type.boolean
boolean
keyEquals
(byte[] otherKey) static DNSKEY
parse
(DataInputStream dis, int length) void
The internal method used to serialize Data subclasses.toString()
Methods inherited from class org.minidns.record.Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
Field Details
-
FLAG_SECURE_ENTRY_POINT
Whether the key should be used as a secure entry point key. see RFC 3757- See Also:
-
FLAG_REVOKE
Whether the record holds a revoked key.- See Also:
-
FLAG_ZONE
Whether the record holds a DNS zone key.- See Also:
-
PROTOCOL_RFC4034
Use the protocol defined in RFC 4034.- See Also:
-
flags
- See Also:
-
protocol
Must bePROTOCOL_RFC4034
. -
algorithm
The public key's cryptographic algorithm used. -
algorithmByte
The byte value of the public key's cryptographic algorithm used.
-
-
Constructor Details
-
DNSKEY
-
DNSKEY
-
-
Method Details
-
parse
- Throws:
IOException
-
getType
Description copied from class:Data
The payload type. -
getKeyTag
Retrieve the key tag identifying this DNSKEY. The key tag is used within the DS and RRSIG record to distinguish multiple keys for the same name. This implementation is based on the reference implementation shown in RFC 4034 Appendix B.- Returns:
- this DNSKEY's key tag
-
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
-
getKeyLength
-
getKey
-
getKeyAsDataInputStream
-
getKeyBase64
-
getKeyBigInteger
-
keyEquals
-
isSecureEntryPoint
-