Class EPPRelatedDomainExtAuthInfo

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

public class EPPRelatedDomainExtAuthInfo extends Object implements EPPCodecComponent
Represents authorization information which is a shared structure been used by other mapping such as domain and contact mappings. This object structure is a direct mapping from the data type authInfo in the EPP Shared Structure Schema (with the name space eppcom).
See Also:
  • Field Details

    • TYPE_PW

      public static final short TYPE_PW
      password auth info type
      See Also:
    • TYPE_EXT

      public static final short TYPE_EXT
      Extensible auth info type.
      See Also:
    • ELM_PW

      protected static final String ELM_PW
      XML Element name password authorization type
      See Also:
    • ELM_EXT

      protected static final String ELM_EXT
      XML Element name extensible authorization type
      See Also:
    • ATTR_ROID

      protected static final String ATTR_ROID
      XML Element roid attribute name of EPPRelatedDomainExtAuthInfo root element.
      See Also:
    • password

      protected String password
      Password authorization information.
    • ext

      protected EPPCodecComponent ext
      Extension authorization information.
    • type

      protected short type
      type, and default value is TYPE_PW
    • roid

      protected String roid
      roid.
  • Constructor Details

    • EPPRelatedDomainExtAuthInfo

      public EPPRelatedDomainExtAuthInfo()
      Default constructor that must have the password or extension attributes set before calling encode.
    • EPPRelatedDomainExtAuthInfo

      public EPPRelatedDomainExtAuthInfo(String aPassword)
      Constructor that takes just the authorization password.
      Parameters:
      aPassword - Authorization password
    • EPPRelatedDomainExtAuthInfo

      public EPPRelatedDomainExtAuthInfo(String aRootNS, String aRootName, String aPassword)
      Constructor that takes the root element and the authorization password.
      Parameters:
      aRootNS - Root element namespace URI
      aRootName - Root element of auth info.
      aPassword - Authorization password
    • EPPRelatedDomainExtAuthInfo

      public EPPRelatedDomainExtAuthInfo(String aRootNS, String aRootName, String aRoid, String aPassword)
      Constructor that takes the root element, the authorization password, and the roid.
      Parameters:
      aRootNS - Root element namespace URI
      aRootName - Root element of auth info.
      aRoid - Roid of the Registrant
      aPassword - Authorization password
    • EPPRelatedDomainExtAuthInfo

      public EPPRelatedDomainExtAuthInfo(EPPCodecComponent aExt)
      Constructor that takes just the authorization extension.
      Parameters:
      aExt - Extension authorization element
    • EPPRelatedDomainExtAuthInfo

      public EPPRelatedDomainExtAuthInfo(String aRootNS, String aRootName, EPPCodecComponent aExt)
      Constructor that takes a root elemeent and the authorization extension.
      Parameters:
      aRootNS - Root element namespace URI
      aRootName - Root element of auth info.
      aExt - Extension authorization element
  • Method Details

    • getRoid

      public String getRoid()
      Get Registry Object IDentifier (ROID).
      Returns:
      Registry Object IDentifier (ROID)
    • setRoid

      public void setRoid(String aRoid)
      Set Registry Object IDentifier (ROID).
      Parameters:
      aRoid - The Registry Object IDentifier (ROID) value.
    • getRootNS

      public String getRootNS()
      Gets the root element XML namespace URI.
      Returns:
      root element XML namespace URI
    • getRootName

      public String getRootName()
      Get root name such as domain or contact.
      Returns:
      String
    • setRootName

      public void setRootName(String aRootNS, String newRootName)
      Set root name and XML namespace.
      Parameters:
      aRootNS - Root element namespace URI
      newRootName - String
    • getAuthInfo

      @Deprecated public String getAuthInfo()
      Deprecated.
      Replaced by getPassword().
      Gets the password authorization information.
      Returns:
      Password
    • getPassword

      public String getPassword()
      Gets the password authorization information.
      Returns:
      Authorization password
    • setPassword

      public void setPassword(String aPassword)
      Sets the password authorization information.
      Parameters:
      aPassword - Authorization password
    • getExt

      public EPPCodecComponent getExt()
      Gets the extension authorization.
      Returns:
      Authorization extension
    • setExt

      public void setExt(EPPCodecComponent aExt)
      Sets the extension authorization information.
      Parameters:
      aExt - Authorization extension
    • setAuthInfo

      @Deprecated public void setAuthInfo(String aPassword)
      Deprecated.
      Replaced by setPassword(String).
      Sets the password authorization information.
      Parameters:
      aPassword - Authorization password
    • getType

      public short getType()
      Get the type of the auth info.
      Returns:
      One of the TYPE_ constants.
    • setType

      public void setType(short aType)
      Set auth info type. The default value is TYPE_PW.
      Parameters:
      aType - One of the TYPE_ constants
    • clone

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

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

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

      public boolean equals(Object aObject)
      implements a deep EPPRelatedDomainExtAuthInfo compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRelatedDomainExtAuthInfo instance to compare with
      Returns:
      true if equal; 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.
    • getNamespace

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