Package org.minidns.record
Class DNSKEY
- java.lang.Object
- 
- org.minidns.record.Data
- 
- org.minidns.record.DNSKEY
 
 
- 
- 
Field SummaryFields Modifier and Type Field Description DnssecConstants.SignatureAlgorithmalgorithmThe public key's cryptographic algorithm used.bytealgorithmByteThe byte value of the public key's cryptographic algorithm used.static shortFLAG_REVOKEWhether the record holds a revoked key.static shortFLAG_SECURE_ENTRY_POINTWhether the key should be used as a secure entry point key.static shortFLAG_ZONEWhether the record holds a DNS zone key.shortflagsbyteprotocolMust bePROTOCOL_RFC4034.static bytePROTOCOL_RFC4034Use the protocol defined in RFC 4034.
 - 
Constructor SummaryConstructors Constructor Description DNSKEY(short flags, byte protocol, byte algorithm, byte[] key)DNSKEY(short flags, byte protocol, DnssecConstants.SignatureAlgorithm algorithm, byte[] key)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getKey()DataInputStreamgetKeyAsDataInputStream()StringgetKeyBase64()BigIntegergetKeyBigInteger()intgetKeyLength()intgetKeyTag()Retrieve the key tag identifying this DNSKEY.Record.TYPEgetType()The payload type.booleanisSecureEntryPoint()booleankeyEquals(byte[] otherKey)static DNSKEYparse(DataInputStream dis, int length)voidserialize(DataOutputStream dos)The internal method used to serialize Data subclasses.StringtoString()- 
Methods inherited from class org.minidns.record.Dataequals, hashCode, length, toByteArray, toOutputStream, toOutputStream
 
- 
 
- 
- 
- 
Field Detail- 
FLAG_SECURE_ENTRY_POINTpublic static final short FLAG_SECURE_ENTRY_POINT Whether the key should be used as a secure entry point key. see RFC 3757- See Also:
- Constant Field Values
 
 - 
FLAG_REVOKEpublic static final short FLAG_REVOKE Whether the record holds a revoked key.- See Also:
- Constant Field Values
 
 - 
FLAG_ZONEpublic static final short FLAG_ZONE Whether the record holds a DNS zone key.- See Also:
- Constant Field Values
 
 - 
PROTOCOL_RFC4034public static final byte PROTOCOL_RFC4034 Use the protocol defined in RFC 4034.- See Also:
- Constant Field Values
 
 - 
flagspublic final short flags - See Also:
- IANA - DNSKEY RR Flags
 
 - 
protocolpublic final byte protocol Must bePROTOCOL_RFC4034.
 - 
algorithmpublic final DnssecConstants.SignatureAlgorithm algorithm The public key's cryptographic algorithm used.
 - 
algorithmBytepublic final byte algorithmByte The byte value of the public key's cryptographic algorithm used.
 
- 
 - 
Constructor Detail- 
DNSKEYpublic DNSKEY(short flags, byte protocol, byte algorithm, byte[] key) 
 - 
DNSKEYpublic DNSKEY(short flags, byte protocol, DnssecConstants.SignatureAlgorithm algorithm, byte[] key) 
 
- 
 - 
Method Detail- 
parsepublic static DNSKEY parse(DataInputStream dis, int length) throws IOException - Throws:
- IOException
 
 - 
getTypepublic Record.TYPE getType() Description copied from class:DataThe payload type.
 - 
getKeyTagpublic int 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
 
 - 
serializepublic void serialize(DataOutputStream dos) throws IOException Description copied from class:DataThe internal method used to serialize Data subclasses.- Specified by:
- serializein class- Data
- Parameters:
- dos- the output stream to serialize to.
- Throws:
- IOException- if an I/O error occurs.
 
 - 
getKeyLengthpublic int getKeyLength() 
 - 
getKeypublic byte[] getKey() 
 - 
getKeyAsDataInputStreampublic DataInputStream getKeyAsDataInputStream() 
 - 
getKeyBase64public String getKeyBase64() 
 - 
getKeyBigIntegerpublic BigInteger getKeyBigInteger() 
 - 
keyEqualspublic boolean keyEquals(byte[] otherKey) 
 - 
isSecureEntryPointpublic boolean isSecureEntryPoint() 
 
- 
 
-