Class DNSKEY


  • public class DNSKEY
    extends Data
    DNSKEY record payload.
    • Constructor Detail

      • DNSKEY

        public DNSKEY​(short flags,
                      byte protocol,
                      byte algorithm,
                      byte[] key)
    • Method Detail

      • parse

        public static DNSKEY parse​(java.io.DataInputStream dis,
                                   int length)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getType

        public Record.TYPE getType()
        Description copied from class: Data
        The payload type.
        Specified by:
        getType in class Data
        Returns:
        The payload type.
      • getKeyTag

        public 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
      • serialize

        public void serialize​(java.io.DataOutputStream dos)
                       throws java.io.IOException
        Description copied from class: Data
        The internal method used to serialize Data subclasses.
        Specified by:
        serialize in class Data
        Parameters:
        dos - the output stream to serialize to.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getKeyLength

        public int getKeyLength()
      • getKey

        public byte[] getKey()
      • getKeyAsDataInputStream

        public java.io.DataInputStream getKeyAsDataInputStream()
      • getKeyBase64

        public java.lang.String getKeyBase64()
      • getKeyBigInteger

        public java.math.BigInteger getKeyBigInteger()
      • keyEquals

        public boolean keyEquals​(byte[] otherKey)
      • isSecureEntryPoint

        public boolean isSecureEntryPoint()