public class EPPCredentials extends java.lang.Object implements EPPCodecComponent
getClientId and setClientId to get and set the element.
getPassword and setPassword to get and set the element.
getNewPassword and
setNewPassword to get and set the element.
getVersion and setVersion to get and set the version. Use
getLang and setLang to get and set the language.
EPPCommand,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PASSWORD_LEN
Maximum length of a password.
|
static int |
MIN_PASSWORD_LEN
Minimum length of a password.
|
| Constructor and Description |
|---|
EPPCredentials()
Allocates a new
EPPCredentials with the following default
attribute values:client id - Default of null. |
EPPCredentials(java.lang.String aClientId,
java.lang.String aPassword)
Allocates a new
EPPCredentials with the required attributes. |
EPPCredentials(java.lang.String aClientId,
java.lang.String aPassword,
java.lang.String aNewPassword)
Allocates a new
EPPCredentials with client id, password, and new
password. |
EPPCredentials(java.lang.String aClientId,
java.lang.String aPassword,
java.lang.String aNewPassword,
java.lang.String aVersion,
java.lang.String aLang)
Allocates a new
EPPCredentials with all attributes. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPCredentials. |
void |
decode(org.w3c.dom.Element aElement)
decode
EPPCredentials from a DOM element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode
EPPCredentials into a DOM element tree. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPCredentials compare. |
java.lang.String |
getClientId()
Gets the client login identifier.
|
java.lang.String |
getLang()
Gets the desired EPP language.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.lang.String |
getNewPassword()
Gets the new client password.
|
java.lang.String |
getPassword()
Gets the client password.
|
java.lang.String |
getVersion()
Gets the desired EPP version.
|
boolean |
hasNewPassword()
Is a new password defined?
|
void |
setClientId(java.lang.String aClientId)
Sets the client login identifier.
|
void |
setLang(java.lang.String aLang)
Sets the desired EPP language.
|
void |
setNewPassword(java.lang.String aNewPassword)
Sets the new client password.
|
void |
setPassword(java.lang.String aPassword)
Sets the client password.
|
void |
setVersion(java.lang.String aVersion)
Sets the desired EPP version.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final int MIN_PASSWORD_LEN
public static final int MAX_PASSWORD_LEN
public EPPCredentials()
EPPCredentials with the following default
attribute values:null. Set with setClientId
null. Set with setPassword
null. Set with
setNewPassword
EPPCodec.VERSION. Set with
setVersion
setLang
public EPPCredentials(java.lang.String aClientId,
java.lang.String aPassword)
EPPCredentials with the required attributes. The
other attributes are initialized as follows: null. Set with
setNewPassword
EPPCodec.VERSION. Set with
setVersion
setLang
aClientId - Client login idaPassword - Client passwordpublic EPPCredentials(java.lang.String aClientId,
java.lang.String aPassword,
java.lang.String aNewPassword)
EPPCredentials with client id, password, and new
password. The other attributes are initialized as follows: EPPCodec.VERSION. Set with
setVersion
setLang
aClientId - Client login idaPassword - Client passwordaNewPassword - Client new passwordpublic EPPCredentials(java.lang.String aClientId,
java.lang.String aPassword,
java.lang.String aNewPassword,
java.lang.String aVersion,
java.lang.String aLang)
EPPCredentials with all attributes.aClientId - Client login idaPassword - Client passwordaNewPassword - Client new passwordaVersion - EPP protocol version desired by ClientaLang - Desired language for result messagespublic java.lang.String getClientId()
null otherwise.public void setClientId(java.lang.String aClientId)
aClientId - Client login identifier.public java.lang.String getPassword()
null otherwise.public void setPassword(java.lang.String aPassword)
aPassword - Client password.public java.lang.String getNewPassword()
null otherwise.public void setNewPassword(java.lang.String aNewPassword)
aNewPassword - New client password.public boolean hasNewPassword()
true if the new password is defined; false
otherwise.public java.lang.String getVersion()
EPPCodec.VERSION.null otherwise.public void setVersion(java.lang.String aVersion)
EPPCodec.VERSION.aVersion - EPP version identifierpublic java.lang.String getLang()
EPPGreeting. The default language is "en".null otherwise.public void setLang(java.lang.String aLang)
EPPGreeting. The default language is "en".aLang - The desired EPP languagepublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPCredentials into a DOM element tree.encode in interface EPPCodecComponentaDocument - DOM document used as a factory of DOM objects.EPPEncodeException - Error encoding the DOM element tree.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPCredentials from a DOM element tree. The
aElement argument needs to be the "trans-id" element, or an
element that conforms to the XML structure of "trans-id".decode in interface EPPCodecComponentaElement - The "trans-id" XML element.EPPDecodeException - Error decoding the DOM element tree.public boolean equals(java.lang.Object aObject)
EPPCredentials compare.equals in class java.lang.ObjectaObject - EPPCredentials instance to compare withpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPCredentials.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPCredentialsjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic 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.