Package org.xbill.DNS

Class DNSKEYRecord

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>
Direct Known Subclasses:
CDNSKEYRecord

public class DNSKEYRecord extends KEYBase
Key - contains a cryptographic public key for use by DNS. The data can be converted to objects implementing java.security.interfaces.PublicKey
See Also:
  • Constructor Details

    • DNSKEYRecord

      DNSKEYRecord()
    • DNSKEYRecord

      protected DNSKEYRecord(Name name, int type, int dclass, long ttl, int flags, int proto, int alg, byte[] key)
      Creates a DNSKEY Record from the given data
      Parameters:
      flags - Flags describing the key's properties
      proto - The protocol that the key was created for
      alg - The key's algorithm
      key - Binary representation of the key
    • DNSKEYRecord

      public DNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg, byte[] key)
      Creates a DNSKEY Record from the given data
      Parameters:
      flags - Flags describing the key's properties
      proto - The protocol that the key was created for
      alg - The key's algorithm
      key - Binary representation of the key
    • DNSKEYRecord

      public DNSKEYRecord(Name name, int dclass, long ttl, int flags, int proto, int alg, PublicKey key) throws DNSSEC.DNSSECException
      Creates a DNSKEY Record from the given data
      Parameters:
      flags - Flags describing the key's properties
      proto - The protocol that the key was created for
      alg - The key's algorithm
      key - The key as a PublicKey
      Throws:
      DNSSEC.DNSSECException - The PublicKey could not be converted into DNS format.
  • Method Details