Class EPPValidateAuthInfo
java.lang.Object
com.verisign.epp.codec.validate.v02.EPPValidateAuthInfo
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents authorization information that is used for validate.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringXML Element roid attribute name ofEPPValidateAuthInforoot element.protected static final StringXML Element name extensible authorization typestatic final StringConstant for the AuthInfo local namestatic final StringConstant for the authInfo tagprotected 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.EPPValidateAuthInfo(String aPassword) Constructor that takes just the authorization password.EPPValidateAuthInfo(String aPassword, String aRoid) Constructor the authorization password and the roid. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPValidateAuthInfo.voidDecode the EPPValidateAuthInfo attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPValidateAuthInfo instance.booleanimplements a deepEPPValidateAuthInfocompare.getExt()Gets the extension authorization.Returns the XML namespace associated with theEPPCodecComponent.Gets the password authorization information.getRoid()Get Registry Object IDentifier (ROID).shortgetType()Get the type of the auth info.voidsetExt(EPPCodecComponent aExt) Sets the extension authorization information.voidsetPassword(String aPassword) Sets the password authorization information.voidSet Registry Object IDentifier (ROID).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_LOCALNAME
Constant for the AuthInfo local name- See Also:
-
ELM_NAME
Constant for the authInfo tag- 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 ofEPPValidateAuthInforoot element.- See Also:
-
password
Password authorization information. -
ext
Extension authorization information. -
type
protected short typeType, and default value isTYPE_PW -
roid
roid.
-
-
Constructor Details
-
EPPValidateAuthInfo
public EPPValidateAuthInfo()Default constructor that must have the password or extension attributes set before callingencode. -
EPPValidateAuthInfo
Constructor that takes just the authorization password.- Parameters:
aPassword- Authorization password
-
EPPValidateAuthInfo
Constructor the authorization password and the roid.- Parameters:
aPassword- Authorization passwordaRoid- Roid of the Registrant
-
EPPValidateAuthInfo
Constructor that takes just the authorization extension.- Parameters:
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.
-
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
-
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
CloneEPPValidateAuthInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPValidateAuthInfo - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Encode a DOM Element tree from the attributes of the EPPValidateAuthInfo 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 EPPValidateAuthInfo instance.
- Throws:
EPPEncodeException- - Unable to encode EPPValidateAuthInfo instance.
-
decode
Decode the EPPValidateAuthInfo 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.
-
equals
implements a deepEPPValidateAuthInfocompare. -
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.
-