public class EPPValidateAuthInfo extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ATTR_ROID
XML Element roid attribute name of
EPPValidateAuthInfo root
element. |
protected static java.lang.String |
ELM_EXT
XML Element name extensible authorization type
|
static java.lang.String |
ELM_LOCALNAME
Constant for the AuthInfo local name
|
static java.lang.String |
ELM_NAME
Constant for the authInfo tag
|
protected static java.lang.String |
ELM_PW
XML Element name password authorization type
|
protected 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 is
TYPE_PW |
static short |
TYPE_EXT
Extensible auth info type.
|
static short |
TYPE_PW
password auth info type
|
| Constructor and Description |
|---|
EPPValidateAuthInfo()
Default constructor that must have the password or extension attributes
set before calling
encode. |
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.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPValidateAuthInfo. |
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 deep
EPPValidateAuthInfo compare. |
EPPCodecComponent |
getExt()
Gets the extension authorization.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
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 of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final short TYPE_PW
public static final short TYPE_EXT
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
protected static final java.lang.String ELM_PW
protected static final java.lang.String ELM_EXT
protected static final java.lang.String ATTR_ROID
EPPValidateAuthInfo root
element.protected java.lang.String password
protected EPPCodecComponent ext
protected short type
TYPE_PWprotected java.lang.String roid
public EPPValidateAuthInfo()
encode.public EPPValidateAuthInfo(java.lang.String aPassword)
aPassword - Authorization passwordpublic EPPValidateAuthInfo(java.lang.String aPassword,
java.lang.String aRoid)
aRoid - Roid of the RegistrantaPassword - Authorization passwordpublic EPPValidateAuthInfo(EPPCodecComponent aExt)
aExt - Extension authorization elementpublic java.lang.String getRoid()
public void setRoid(java.lang.String aRoid)
aRoid - The Registry Object IDentifier (ROID) value.public java.lang.String getPassword()
public void setPassword(java.lang.String aPassword)
aPassword - Authorization passwordpublic EPPCodecComponent getExt()
public void setExt(EPPCodecComponent aExt)
aExt - Authorization extensionpublic short getType()
TYPE_ constants.public void setType(short aType)
TYPE_PW.aType - One of the TYPE_ constantspublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPValidateAuthInfo.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPValidateAuthInfojava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - - DOM Document that is being built. Used as an Element factory.EPPEncodeException - - Unable to encode EPPValidateAuthInfo instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
decode in interface EPPCodecComponentaElement - - Root DOM Element to decode EPPDomainContact from.EPPDecodeException - - Unable to decode aElement.public boolean equals(java.lang.Object aObject)
EPPValidateAuthInfo compare.equals in class java.lang.ObjectaObject - EPPValidateAuthInfo instance to compare withtrue if equal; false otherwisepublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful; ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.