Class EPPRelatedDomainExtAuthInfo
java.lang.Object
com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtAuthInfo
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringXML Element roid attribute name ofEPPRelatedDomainExtAuthInforoot element.protected static final StringXML Element name extensible authorization typeprotected static final StringXML Element name password authorization typeprotected EPPCodecComponentExtension authorization information.protected StringPassword authorization information.protected Stringroid.protected shorttype, and default value isTYPE_PWstatic final shortExtensible auth info type.static final shortpassword auth info type -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor that must have the password or extension attributes set before callingencode.Constructor that takes just the authorization extension.EPPRelatedDomainExtAuthInfo(String aPassword) Constructor that takes just the authorization password.EPPRelatedDomainExtAuthInfo(String aRootNS, String aRootName, EPPCodecComponent aExt) Constructor that takes a root elemeent and the authorization extension.EPPRelatedDomainExtAuthInfo(String aRootNS, String aRootName, String aPassword) Constructor that takes the root element and the authorization password.EPPRelatedDomainExtAuthInfo(String aRootNS, String aRootName, String aRoid, String aPassword) Constructor that takes the root element, the authorization password, and the roid. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRelatedDomainExtAuthInfo.voidDecode the EPPRelatedDomainExtAuthInfo attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtAuthInfo instance.booleanimplements a deepEPPRelatedDomainExtAuthInfocompare.Deprecated.getExt()Gets the extension authorization.Returns the XML namespace associated with theEPPCodecComponent.Gets the password authorization information.getRoid()Get Registry Object IDentifier (ROID).Get root name such as domain or contact.Gets the root element XML namespace URI.shortgetType()Get the type of the auth info.voidsetAuthInfo(String aPassword) Deprecated.Replaced bysetPassword(String).voidsetExt(EPPCodecComponent aExt) Sets the extension authorization information.voidsetPassword(String aPassword) Sets the password authorization information.voidSet Registry Object IDentifier (ROID).voidsetRootName(String aRootNS, String newRootName) Set root name and XML namespace.voidsetType(short aType) Set auth info type.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
TYPE_PW
public static final short TYPE_PWpassword auth info type- See Also:
-
TYPE_EXT
public static final short TYPE_EXTExtensible auth info type.- See Also:
-
ELM_PW
XML Element name password authorization type- See Also:
-
ELM_EXT
XML Element name extensible authorization type- See Also:
-
ATTR_ROID
XML Element roid attribute name ofEPPRelatedDomainExtAuthInforoot element.- See Also:
-
password
Password authorization information. -
ext
Extension authorization information. -
type
protected short typetype, and default value isTYPE_PW -
roid
roid.
-
-
Constructor Details
-
EPPRelatedDomainExtAuthInfo
public EPPRelatedDomainExtAuthInfo()Default constructor that must have the password or extension attributes set before callingencode. -
EPPRelatedDomainExtAuthInfo
Constructor that takes just the authorization password.- Parameters:
aPassword- Authorization password
-
EPPRelatedDomainExtAuthInfo
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(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 URIaRootName- Root element of auth info.aRoid- Roid of the RegistrantaPassword- Authorization password
-
EPPRelatedDomainExtAuthInfo
Constructor that takes just the authorization extension.- Parameters:
aExt- Extension authorization element
-
EPPRelatedDomainExtAuthInfo
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 Details
-
getRoid
Get Registry Object IDentifier (ROID).- Returns:
- Registry Object IDentifier (ROID)
-
setRoid
Set Registry Object IDentifier (ROID).- Parameters:
aRoid- The Registry Object IDentifier (ROID) value.
-
getRootNS
Gets the root element XML namespace URI.- Returns:
- root element XML namespace URI
-
getRootName
Get root name such as domain or contact.- Returns:
- String
-
setRootName
Set root name and XML namespace.- Parameters:
aRootNS- Root element namespace URInewRootName- String
-
getAuthInfo
Deprecated.Replaced bygetPassword().Gets the password authorization information.- Returns:
- Password
-
getPassword
Gets the password authorization information.- Returns:
- Authorization password
-
setPassword
Sets the password authorization information.- Parameters:
aPassword- Authorization password
-
getExt
Gets the extension authorization.- Returns:
- Authorization extension
-
setExt
Sets the extension authorization information.- Parameters:
aExt- Authorization extension
-
setAuthInfo
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
CloneEPPRelatedDomainExtAuthInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRelatedDomainExtAuthInfo - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode 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
Encode 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
implements a deepEPPRelatedDomainExtAuthInfocompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
getPassword().