Class EPPSecDNSExtInfData

java.lang.Object
com.verisign.epp.codec.secdnsext.v11.EPPSecDNSExtInfData
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPSecDNSExtInfData extends Object implements EPPCodecComponent
The EPPSecDNSExtInfData is the EPPCodecComponent that knows how to encode and decode secDNS infData elements from/to XML and object instance.
See Also:
  • Field Details

    • UNSPEC_MAX_SIG_LIFE

      public static final int UNSPEC_MAX_SIG_LIFE
      Unspecified maxSigLife value
      See Also:
    • MIN_MAX_SIG_LIFE

      public static final int MIN_MAX_SIG_LIFE
      Minimum maxSigLife value
      See Also:
    • MAX_MAX_SIG_LIFE

      public static final int MAX_MAX_SIG_LIFE
      Maximum maxSigLife value
      See Also:
    • ELM_MAX_SIG_LIFE

      public static final String ELM_MAX_SIG_LIFE
      The element tag name for maxSigLife
      See Also:
    • ELM_NAME

      public static final String ELM_NAME
      Element tag name for the infData
      See Also:
  • Constructor Details

    • EPPSecDNSExtInfData

      public EPPSecDNSExtInfData()
      Instantiate a new instance of EPPSecDNSExtInfData. Set either dsData or keyData prior to calling encode(Document).
    • EPPSecDNSExtInfData

      public EPPSecDNSExtInfData(List<EPPSecDNSExtDsData> aDsData, List<EPPSecDNSExtKeyData> aKeyData, int aMaxSigLife)
      Creates a new instance of the EPPSecDNSExtInfData with the DS DATA element.
      Parameters:
      aDsData - List of DS Data EPPSecDNSExtDsData instances if using DS Data Interface.
      aKeyData - List of Key Data EPPSecDNSExtKeyData instance if using Key Data Interface.
      aMaxSigLife - Child's preference for the number of seconds after signature generation when the parent's signature on the DS information provided by the child will expire. Set to UNSPEC_MAX_SIG_LIFE if there is no preference.
  • Method Details

    • getNamespace

      public String getNamespace()
      The namespace associated with this secDNS infData.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      The namespace associated with secDNS component
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Append all data from this secDNS create to the given DOM Document
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - The DOM Document to append data to
      Returns:
      Encoded DOM Element
      Throws:
      EPPEncodeException - Thrown when errors occur during the encode attempt or if the instance is invalid.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Populate the data of this instance with the data stored in the given Element of the DOM tree
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - The root element of the report fragment of XML
      Throws:
      EPPDecodeException - Thrown if any errors occur during decoding.
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPSecDNSExtInfData compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPSecDNSExtInfData instance to compare with
      Returns:
      true if equal false otherwise
    • clone

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

      public boolean hasDsData()
      Is there dsData contained in EPPSecDNSExtInfData?
      Returns:
      true if list of EPPSecDNSExtDsData is not null and not empty; false otherwise.
    • getDsData

      public List<EPPSecDNSExtDsData> getDsData()
      Gets the dsData.
      Returns:
      List of dsData EPPSecDNSExtDsData instances if defined; null otherwise.
    • setDsData

      public void setDsData(List<EPPSecDNSExtDsData> aDsData)
      Sets the List of DS Data EPPSecDNSExtDsData instances.
      Parameters:
      aDsData - List of EPPSecDNSExtDsData instances
    • appendDsData

      public void appendDsData(EPPSecDNSExtDsData aDsData)
      Appends to the List of DS Data EPPSecDNSExtDsData instances.
      Parameters:
      aDsData - EPPSecDNSExtDsData instance
    • hasKeyData

      public boolean hasKeyData()
      Is there keyData contained in EPPSecDNSExtInfData?
      Returns:
      true if list of EPPSecDNSExtKeyData is not null and not empty; false otherwise.
    • getKeyData

      public List<EPPSecDNSExtKeyData> getKeyData()
      Gets the keyData.
      Returns:
      List of keyData EPPSecDNSExtKeyData instances if defined; null otherwise.
    • setKeyData

      public void setKeyData(List<EPPSecDNSExtKeyData> aKeyData)
      Sets the List of DS Data EPPSecDNSExtKeyData instances to create
      Parameters:
      aKeyData - List of EPPSecDNSExtKeyData instances
    • appendKeyData

      public void appendKeyData(EPPSecDNSExtKeyData aKeyData)
      Appends to the List of DS Data EPPSecDNSExtKeyData instances to create.
      Parameters:
      aKeyData - EPPSecDNSExtKeyData instance
    • getMaxSigLife

      public int getMaxSigLife()
      Get secDNS:maxSigLife value
      Returns:
      an int value representing secDNS:maxSigLife
      See Also:
      • hasMaxSigLife()
      • UNSPEC_MAX_SIG_LIFE
    • setMaxSigLife

      public void setMaxSigLife(int maxSigLife)
      Set secDNS:maxSigLife value
      Parameters:
      maxSigLife - an int value representing secDNS:maxSigLife
    • hasMaxSigLife

      public boolean hasMaxSigLife()
      Does secDNS:infData include optional secDNS:maxSigLife?
      Returns:
      true if secDNS:maxSigLife is specified, otherwise false
      See Also:
      • UNSPEC_MAX_SIG_LIFE