Class EPPRegistryDS

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

public class EPPRegistryDS extends EPPRegistryAbstractMinMax
Defines the DS Data Interface, as defined in RFC 5910, policies. The <registry:dsDataInterface> element contains the following child elements:

See Also:
  • Field Details

  • Constructor Details

    • EPPRegistryDS

      public EPPRegistryDS()
      Constructs a new EPPRegistryDS object. All attributes are set to default. Must call EPPRegistryAbstractMinMax.setMin(Integer) and EPPRegistryAbstractMinMax.setMax(Integer) before calling encode(Document) method.
    • EPPRegistryDS

      public EPPRegistryDS(Integer aMin, Integer aMax)
      Constructs a new EPPRegistryDS with a min and a max value.
      Parameters:
      aMin - minimum number of DS associated with the domain object
      aMax - maximum number of DS associated with the domain object
    • EPPRegistryDS

      public EPPRegistryDS(Integer aMin, Integer aMax, List<Integer> aAlgorithms, List<Integer> aDigestTypes)
      Constructs a new EPPRegistryDS with given values.
      Parameters:
      aMin - minimum number of DS associated with the domain object
      aMax - maximum number of DS associated with the domain object
      aAlgorithms - List of algorithm String
      aDigestTypes - List of digest type String
    • EPPRegistryDS

      public EPPRegistryDS(int aMin, int aMax, List<Integer> aAlgorithms, List<Integer> aDigestTypes)
      Constructs a new EPPRegistryDS with given values.
      Parameters:
      aMin - minimum number of DS associated with the domain object
      aMax - maximum number of DS associated with the domain object
      aAlgorithms - List of algorithm String
      aDigestTypes - List of digest type String
  • Method Details

    • encode

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

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

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

      public boolean equals(Object aObject)
      implements a deep EPPRegistryDS compare.
      Overrides:
      equals in class EPPRegistryAbstractMinMax
      Parameters:
      aObject - EPPRegistryDS 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 EPPRegistryAbstractMinMax
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • hasAlgorithms

      public boolean hasAlgorithms()
      Is the algorithms defined?
      Returns:
      true if the algorithms is defined; false otherwise.
    • getAlgorithms

      public List<Integer> getAlgorithms()
      Gets the supported algorithms.
      Returns:
      List of supported algorithms as described in section 5.1.2 of RFC 4034
    • setAlgorithms

      public void setAlgorithms(List<Integer> aAlgorithms)
      Sets the supported algorithms.
      Parameters:
      aAlgorithms - List of supported algorithms as described in section 5.1.2 of RFC 4034
    • addAlgorithm

      public void addAlgorithm(Integer aAlgorithm)
      Adds one algorithm to existing supported algorithms.
      Parameters:
      aAlgorithm - supported algorithm as described in section 5.1.2 of RFC 4034
    • getDigestTypes

      public List<Integer> getDigestTypes()
      Get digest types.
      Returns:
      List of digest type in String
    • setDigestTypes

      public void setDigestTypes(List<Integer> aDigestTypes)
      Set digest types.
      Parameters:
      aDigestTypes - List of digest type in String
    • addDigestType

      public void addDigestType(Integer digestType)
      Add one digest type to an existing list.
      Parameters:
      digestType - digest type in String
    • getRootName

      protected String getRootName()
      Gets the root element local name.
      Specified by:
      getRootName in class EPPRegistryAbstractMinMax
      Returns:
      Root element local name.
    • getElmMin

      protected String getElmMin()
      Gets the minimum element local name.
      Specified by:
      getElmMin in class EPPRegistryAbstractMinMax
      Returns:
      Minimum element local name.
    • getElmMax

      protected String getElmMax()
      Gets the maximum element local name.
      Specified by:
      getElmMax in class EPPRegistryAbstractMinMax
      Returns:
      Maximum element local name.
    • getLogger

      protected org.slf4j.Logger getLogger()
      Gets the Logger to use.
      Specified by:
      getLogger in class EPPRegistryAbstractMinMax
      Returns:
      Logger instance to use for logging.