Class EPPValidateAuthInfo
- java.lang.Object
-
- com.verisign.epp.codec.validate.v02.EPPValidateAuthInfo
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPValidateAuthInfo extends java.lang.Object implements EPPCodecComponent
Represents authorization information that is used for validate.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
ATTR_ROID
XML Element roid attribute name ofEPPValidateAuthInfo
root element.protected static java.lang.String
ELM_EXT
XML Element name extensible authorization typestatic java.lang.String
ELM_LOCALNAME
Constant for the AuthInfo local namestatic java.lang.String
ELM_NAME
Constant for the authInfo tagprotected static java.lang.String
ELM_PW
XML Element name password authorization typeprotected EPPCodecComponent
ext
Extension authorization information.protected java.lang.String
password
Password authorization information.protected java.lang.String
roid
roid.protected short
type
Type, and default value isTYPE_PW
static short
TYPE_EXT
Extensible auth info type.static short
TYPE_PW
password auth info type
-
Constructor Summary
Constructors Constructor Description EPPValidateAuthInfo()
Default constructor that must have the password or extension attributes set before callingencode
.EPPValidateAuthInfo(EPPCodecComponent aExt)
Constructor that takes just the authorization extension.EPPValidateAuthInfo(java.lang.String aPassword)
Constructor that takes just the authorization password.EPPValidateAuthInfo(java.lang.String aPassword, java.lang.String aRoid)
Constructor the authorization password and the roid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPValidateAuthInfo
.void
decode(org.w3c.dom.Element aElement)
Decode the EPPValidateAuthInfo attributes from the aElement DOM Element tree.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the EPPValidateAuthInfo instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPValidateAuthInfo
compare.EPPCodecComponent
getExt()
Gets the extension authorization.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.java.lang.String
getPassword()
Gets the password authorization information.java.lang.String
getRoid()
Get Registry Object IDentifier (ROID).short
getType()
Get the type of the auth info.void
setExt(EPPCodecComponent aExt)
Sets the extension authorization information.void
setPassword(java.lang.String aPassword)
Sets the password authorization information.void
setRoid(java.lang.String aRoid)
Set Registry Object IDentifier (ROID).void
setType(short aType)
Set auth info type.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation 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_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the AuthInfo local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the authInfo tag- 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 ofEPPValidateAuthInfo
root 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
-
EPPValidateAuthInfo
public EPPValidateAuthInfo()
Default constructor that must have the password or extension attributes set before callingencode
.
-
EPPValidateAuthInfo
public EPPValidateAuthInfo(java.lang.String aPassword)
Constructor that takes just the authorization password.- Parameters:
aPassword
- Authorization password
-
EPPValidateAuthInfo
public EPPValidateAuthInfo(java.lang.String aPassword, java.lang.String aRoid)
Constructor the authorization password and the roid.- Parameters:
aRoid
- Roid of the RegistrantaPassword
- Authorization password
-
EPPValidateAuthInfo
public EPPValidateAuthInfo(EPPCodecComponent aExt)
Constructor that takes just the authorization extension.- Parameters:
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.
-
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
-
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.CloneNotSupportedException
CloneEPPValidateAuthInfo
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPValidateAuthInfo
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of the EPPValidateAuthInfo instance.- Specified by:
encode
in 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode the EPPValidateAuthInfo attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- - Root DOM Element to decode EPPDomainContact from.- Throws:
EPPDecodeException
- - Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPValidateAuthInfo
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPValidateAuthInfo
instance to compare with- Returns:
true
if equal;false
otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-