Class EPPRelatedDomainExtAuthInfo
- java.lang.Object
-
- com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtAuthInfo
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRelatedDomainExtAuthInfo extends java.lang.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 typeauthInfoin the EPP Shared Structure Schema (with the name spaceeppcom).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringATTR_ROIDXML Element roid attribute name ofEPPRelatedDomainExtAuthInforoot element.protected static java.lang.StringELM_EXTXML Element name extensible authorization typeprotected static java.lang.StringELM_PWXML Element name password authorization typeprotected EPPCodecComponentextExtension authorization information.protected java.lang.StringpasswordPassword authorization information.protected java.lang.Stringroidroid.protected shorttypetype, and default value isTYPE_PWstatic shortTYPE_EXTExtensible auth info type.static shortTYPE_PWpassword auth info type
-
Constructor Summary
Constructors Constructor Description EPPRelatedDomainExtAuthInfo()Default constructor that must have the password or extension attributes set before callingencode.EPPRelatedDomainExtAuthInfo(EPPCodecComponent aExt)Constructor that takes just the authorization extension.EPPRelatedDomainExtAuthInfo(java.lang.String aPassword)Constructor that takes just the authorization password.EPPRelatedDomainExtAuthInfo(java.lang.String aRootNS, java.lang.String aRootName, EPPCodecComponent aExt)Constructor that takes a root elemeent and the authorization extension.EPPRelatedDomainExtAuthInfo(java.lang.String aRootNS, java.lang.String aRootName, java.lang.String aPassword)Constructor that takes the root element and the authorization password.EPPRelatedDomainExtAuthInfo(java.lang.String aRootNS, java.lang.String aRootName, java.lang.String aRoid, java.lang.String aPassword)Constructor that takes the root element, the authorization password, and the roid.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRelatedDomainExtAuthInfo.voiddecode(org.w3c.dom.Element aElement)Decode the EPPRelatedDomainExtAuthInfo attributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtAuthInfo instance.booleanequals(java.lang.Object aObject)implements a deepEPPRelatedDomainExtAuthInfocompare.java.lang.StringgetAuthInfo()Deprecated.Replaced bygetPassword().EPPCodecComponentgetExt()Gets the extension authorization.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetPassword()Gets the password authorization information.java.lang.StringgetRoid()Get Registry Object IDentifier (ROID).java.lang.StringgetRootName()Get root name such as domain or contact.java.lang.StringgetRootNS()Gets the root element XML namespace URI.shortgetType()Get the type of the auth info.voidsetAuthInfo(java.lang.String aPassword)Deprecated.Replaced bysetPassword(String).voidsetExt(EPPCodecComponent aExt)Sets the extension authorization information.voidsetPassword(java.lang.String aPassword)Sets the password authorization information.voidsetRoid(java.lang.String aRoid)Set Registry Object IDentifier (ROID).voidsetRootName(java.lang.String aRootNS, java.lang.String newRootName)Set root name and XML namespace.voidsetType(short aType)Set auth info type.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
TYPE_PW
public static final short TYPE_PW
password auth info type- See Also:
- Constant Field Values
-
TYPE_EXT
public static final short TYPE_EXT
Extensible auth info type.- See Also:
- Constant Field Values
-
ELM_PW
protected static final java.lang.String ELM_PW
XML Element name password authorization type- See Also:
- Constant Field Values
-
ELM_EXT
protected static final java.lang.String ELM_EXT
XML Element name extensible authorization type- See Also:
- Constant Field Values
-
ATTR_ROID
protected static final java.lang.String ATTR_ROID
XML Element roid attribute name ofEPPRelatedDomainExtAuthInforoot element.- See Also:
- Constant Field Values
-
password
protected java.lang.String password
Password authorization information.
-
ext
protected EPPCodecComponent ext
Extension authorization information.
-
type
protected short type
type, and default value isTYPE_PW
-
roid
protected java.lang.String roid
roid.
-
-
Constructor Detail
-
EPPRelatedDomainExtAuthInfo
public EPPRelatedDomainExtAuthInfo()
Default constructor that must have the password or extension attributes set before callingencode.
-
EPPRelatedDomainExtAuthInfo
public EPPRelatedDomainExtAuthInfo(java.lang.String aPassword)
Constructor that takes just the authorization password.- Parameters:
aPassword- Authorization password
-
EPPRelatedDomainExtAuthInfo
public EPPRelatedDomainExtAuthInfo(java.lang.String aRootNS, java.lang.String aRootName, java.lang.String aPassword)Constructor that takes the root element and the authorization password.- Parameters:
aRootNS- Root element namespace URIaRootName- Root element of auth info.aPassword- Authorization password
-
EPPRelatedDomainExtAuthInfo
public EPPRelatedDomainExtAuthInfo(java.lang.String aRootNS, java.lang.String aRootName, java.lang.String aRoid, java.lang.String aPassword)Constructor that takes the root element, the authorization password, and the roid.- Parameters:
aRootNS- Root element namespace URIaRootName- Root element of auth info.aRoid- Roid of the RegistrantaPassword- Authorization password
-
EPPRelatedDomainExtAuthInfo
public EPPRelatedDomainExtAuthInfo(EPPCodecComponent aExt)
Constructor that takes just the authorization extension.- Parameters:
aExt- Extension authorization element
-
EPPRelatedDomainExtAuthInfo
public EPPRelatedDomainExtAuthInfo(java.lang.String aRootNS, java.lang.String aRootName, EPPCodecComponent aExt)Constructor that takes a root elemeent and the authorization extension.- Parameters:
aRootNS- Root element namespace URIaRootName- Root element of auth info.aExt- Extension authorization element
-
-
Method Detail
-
getRoid
public java.lang.String getRoid()
Get Registry Object IDentifier (ROID).- Returns:
- Registry Object IDentifier (ROID)
-
setRoid
public void setRoid(java.lang.String aRoid)
Set Registry Object IDentifier (ROID).- Parameters:
aRoid- The Registry Object IDentifier (ROID) value.
-
getRootNS
public java.lang.String getRootNS()
Gets the root element XML namespace URI.- Returns:
- root element XML namespace URI
-
getRootName
public java.lang.String getRootName()
Get root name such as domain or contact.- Returns:
- String
-
setRootName
public void setRootName(java.lang.String aRootNS, java.lang.String newRootName)Set root name and XML namespace.- Parameters:
aRootNS- Root element namespace URInewRootName- String
-
getAuthInfo
@Deprecated public java.lang.String getAuthInfo()
Deprecated.Replaced bygetPassword().Gets the password authorization information.- Returns:
- Password
-
getPassword
public java.lang.String getPassword()
Gets the password authorization information.- Returns:
- Authorization password
-
setPassword
public void setPassword(java.lang.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(java.lang.String aPassword)
Deprecated.Replaced bysetPassword(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 isTYPE_PW.- Parameters:
aType- One of theTYPE_constants
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRelatedDomainExtAuthInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRelatedDomainExtAuthInfo - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode the EPPRelatedDomainExtAuthInfo attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPDomainContact from.- Throws:
EPPDecodeException- - Unable to decode aElement.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of the EPPRelatedDomainExtAuthInfo instance.- Specified by:
encodein interfaceEPPCodecComponent- 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(java.lang.Object aObject)
implements a deepEPPRelatedDomainExtAuthInfocompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRelatedDomainExtAuthInfoinstance to compare with- Returns:
trueif equal;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-