Class EPPRegistryMaxSig

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

public class EPPRegistryMaxSig extends Object implements EPPCodecComponent
EPPRegistryMaxSig defines the maximum signature lifetime policies.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    XML Element Name of clientDefined attribute.
    static final String
    XML Element Name of defaultLife attribute.
    static final String
    XML local name for EPPRegistryMaxSig.
    static final String
    XML Element Name of max attribute.
    static final String
    XML Element Name of min attribute.
    static final String
    XML root tag for EPPRegistryMaxSig.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    EPPRegistryMaxSig(boolean aClientDefined, int aDefaultLife, int aMin, int aMax)
    Constructor that takes all attributes as parameters.
    EPPRegistryMaxSig(Boolean aClientDefined, Integer aDefaultLife, Integer aMin, Integer aMax)
    Constructor that takes all attributes as parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    Clone EPPRegistryMaxSig.
    void
    decode(Element aElement)
    Decode the EPPRegistryMaxSig attributes from the aElement DOM Element tree.
    encode(Document aDocument)
    Encode a DOM Element tree from the attributes of the EPPRegistryMaxSig instance.
    boolean
    equals(Object aObject)
    implements a deep EPPRegistryMaxSig compare.
    Gets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".
    Gets the OPTIONAL default maximum signature lifetime set by the server.
    Gets the OPTIONAL maximum signature lifetime supported.
    Gets the OPTIONAL minimum signature lifetime supported.
    Returns the XML namespace associated with the EPPCodecComponent.
    boolean
    Is the default lifetime defined?
    boolean
    Is the maximum signature lifetime defined?
    boolean
    Is the minimum signature lifetime defined?
    void
    setClientDefined(Boolean aClientDefined)
    Sets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".
    void
    setDefaultLife(Integer aDefaultLife)
    Sets the OPTIONAL default maximum signature lifetime set by the server.
    void
    Sets the OPTIONAL maximum signature lifetime supported.
    void
    Sets the OPTIONAL minimum signature lifetime supported.
    Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • EPPRegistryMaxSig

      public EPPRegistryMaxSig()
      Default constructor.
    • EPPRegistryMaxSig

      public EPPRegistryMaxSig(Boolean aClientDefined, Integer aDefaultLife, Integer aMin, Integer aMax)
      Constructor that takes all attributes as parameters.
      Parameters:
      aClientDefined - Boolean flag indicating whether the client can set the maximum signature lifetime. If set to null, Boolean.FALSE will be used.
      aDefaultLife - Default maximum signature lifetime set by the server. Set to null if undefined.
      aMin - Minimum signature lifetime supported. Set to null if undefined.
      aMax - Maximum signature lifetime supported. Set to null if undefined.
    • EPPRegistryMaxSig

      public EPPRegistryMaxSig(boolean aClientDefined, int aDefaultLife, int aMin, int aMax)
      Constructor that takes all attributes as parameters.
      Parameters:
      aClientDefined - Boolean flag indicating whether the client can set the maximum signature lifetime. Must be set to Boolean.FALSE for this constructor, since the minimum and maximum signature lifetime attributes will be defined.
      aDefaultLife - Default maximum signature lifetime set by the server.
      aMin - Minimum signature lifetime supported.
      aMax - Maximum signature lifetime supported.
  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPRegistryMaxSig 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 EPPRegistryMaxSig instance.
      Throws:
      EPPEncodeException - - Unable to encode EPPRegistryMaxSig instance.
    • decode

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

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

      public boolean equals(Object aObject)
      implements a deep EPPRegistryMaxSig compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRegistryMaxSig 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.
    • getClientDefined

      public Boolean getClientDefined()
      Gets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".
      Returns:
      Boolean flag indicating whether the client can set the maximum signature lifetime with a default value Boolean.FALSE.
    • setClientDefined

      public void setClientDefined(Boolean aClientDefined)
      Sets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".
      Parameters:
      aClientDefined - Boolean flag indicating whether the client can set the maximum signature lifetime. If set to null the default value of Boolean.FALSE will be used.
    • hasDefaultLife

      public boolean hasDefaultLife()
      Is the default lifetime defined?
      Returns:
      true if the default lifetime is defined; false otherwise.
    • getDefaultLife

      public Integer getDefaultLife()
      Gets the OPTIONAL default maximum signature lifetime set by the server.
      Returns:
      Default maximum signature lifetime set by the server. if defined; null otherwise.
    • setDefaultLife

      public void setDefaultLife(Integer aDefaultLife)
      Sets the OPTIONAL default maximum signature lifetime set by the server.
      Parameters:
      aDefaultLife - Default maximum signature lifetime set by the server. Set to null to clear the attribute.
    • hasMin

      public boolean hasMin()
      Is the minimum signature lifetime defined?
      Returns:
      true if the minimum signature lifetime is defined; false otherwise.
    • getMin

      public Integer getMin()
      Gets the OPTIONAL minimum signature lifetime supported.
      Returns:
      Minimum signature lifetime supported if defined; null otherwise.
    • setMin

      public void setMin(Integer aMin)
      Sets the OPTIONAL minimum signature lifetime supported.
      Parameters:
      aMin - Minimum signature lifetime supported. Set to null to clear the attribute.
    • hasMax

      public boolean hasMax()
      Is the maximum signature lifetime defined?
      Returns:
      true if the maximum signature lifetime is defined; false otherwise.
    • getMax

      public Integer getMax()
      Gets the OPTIONAL maximum signature lifetime supported.
      Returns:
      Maximum signature lifetime supported if defined; null otherwise.
    • setMax

      public void setMax(Integer aMax)
      Sets the OPTIONAL maximum signature lifetime supported.
      Parameters:
      aMax - Maximum signature lifetime supported. Set to null to clear the attribute.
    • getNamespace

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