Class EPPRegistryDNSSEC

java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryDNSSEC
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPRegistryDNSSEC extends Object implements EPPCodecComponent
Defines the DNS Security Extensions (DNSSEC) policies for the server. The <registry:dnssec> element contains the following child elements:

  • <registry:dsDataInterface> - defines the DS Data Interface, as defined in RFC 5910, policies. Use getDs() and setDs(EPPRegistryDS) to get and set this element.
  • <registry:keyDataInterface> - defines the Key Data Interface, as defined in RFC 5910, policies. Use getKey() and setKey(EPPRegistryKey) to get and set this element.
  • <registry:maxSigLife> - defines the maximum signature life policies. Use getMaxSigLife() and setMaxSigLife(EPPRegistryMaxSig) to get and set this element.
  • <registry:urgent> - whether the client can specify the urgent attribute for DNSSEC updates with a default value of false.. Use getUrgent() and setUrgent(Boolean) to get and set this element.
In one <registry:dnssec> element, only one of <registry:dsDataInterface> or <registry:keyDataInterface> may exist.

See Also:
  • Field Details

  • Constructor Details

    • EPPRegistryDNSSEC

      public EPPRegistryDNSSEC()
  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPRegistryDNSSEC instance.
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Element Root DOM Element representing the EPPRegistryDNSSEC instance.
      Throws:
      EPPEncodeException - - Unable to encode EPPRegistryDNSSEC instance.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPRegistryDNSSEC attributes from the aElement DOM Element tree.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Root DOM Element to decode EPPRegistryDNSSEC from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPRegistryDNSSEC.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPRegistryDNSSEC
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPRegistryDNSSEC compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRegistryDNSSEC instance to compare with
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • toString

      public String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      Overrides:
      toString in class Object
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getDs

      public EPPRegistryDS getDs()
      Get DS Data interface attributes.
      Returns:
      instance of EPPRegistryDS
    • setDs

      public void setDs(EPPRegistryDS ds)
      Set DS Data interface attributes.
      Parameters:
      ds - instance of EPPRegistryDS
    • getKey

      public EPPRegistryKey getKey()
      Get Key Data interface attributes.
      Returns:
      instance of EPPRegistryKey
    • setKey

      public void setKey(EPPRegistryKey key)
      Set Key Data interface attributes.
      Parameters:
      key - instance of EPPRegistryKey
    • getMaxSigLife

      public EPPRegistryMaxSig getMaxSigLife()
      Get max signature life policy.
      Returns:
      instance of EPPRegistryMaxSig
    • setMaxSigLife

      public void setMaxSigLife(EPPRegistryMaxSig maxSigLife)
      Set max signature life policy.
      Parameters:
      maxSigLife - instance of EPPRegistryMaxSig
    • getUrgent

      public Boolean getUrgent()
      Get the urgent flag.
      Returns:
      true if the client can specify the urgent attribute for DNSSEC updates. false if the client CANNOT specify the urgent attribute for DNSSEC updates.
    • setUrgent

      public void setUrgent(Boolean urgent)
      Set the urgent flag.
      Parameters:
      urgent - true if the client can specify the urgent attribute for DNSSEC updates. false if the client CANNOT specify the urgent attribute for DNSSEC updates.
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.