Class EPPLoginSec
java.lang.Object
com.verisign.epp.codec.loginsec.v1_0.EPPLoginSec
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Login Security Extension that extends an
EPPLoginCmd to support passing a longer
password (pw) or new password (newPW).- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLoginSec.EPPLoginSec(EPPLoginSecUserAgent aUserAgent) EPPLoginSecconstructor that takes the client user agent.EPPLoginSec(EPPLoginSecUserAgent aUserAgent, String aPassword) EPPLoginSecconstructor that takes the password.EPPLoginSec(EPPLoginSecUserAgent aUserAgent, String aPassword, String aNewPassword) EPPLoginSecconstructor that takes all attributes (user agent, password, and new password). -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone anEPPCodecComponentinstance.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPLoginSecwith this instance.Returns the XML namespace associated with theEPPCodecComponent.Gets the new client password.Gets the client password.Gets the user agent.booleanIs a new password defined?booleanIs a password defined?booleanIs a user agent defined?voidsetNewPassword(String aNewPassword) Sets the new client password.voidsetPassword(String aPassword) Sets the client password.voidsetUserAgent(EPPLoginSecUserAgent aUserAgent) Sets the user agent.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
LOGIN_SECURITY_PASSWORD
Password set in thepwornewPWfields of the login command if overridden the password with the password in the extension.- See Also:
-
ELM_LOCALNAME
XML local name forEPPLoginSec.- See Also:
-
ELM_NAME
XML root tag forEPPLoginSec.- See Also:
-
-
Constructor Details
-
EPPLoginSec
public EPPLoginSec()Default constructor forEPPLoginSec. -
EPPLoginSec
EPPLoginSecconstructor that takes the client user agent.- Parameters:
aUserAgent- Client user agent
-
EPPLoginSec
EPPLoginSecconstructor that takes the password.- Parameters:
aUserAgent- Client user agent. Set tonullif undefined.aPassword- Client password
-
EPPLoginSec
EPPLoginSecconstructor that takes all attributes (user agent, password, and new password).- Parameters:
aUserAgent- Client user agent. Set tonullif undefined.aPassword- Client passwordaNewPassword- New client password
-
-
Method Details
-
hasUserAgent
public boolean hasUserAgent()Is a user agent defined?- Returns:
trueif the user agent is defined;falseotherwise.
-
getUserAgent
Gets the user agent.- Returns:
- User agent if defined;
nullotherwise.
-
setUserAgent
Sets the user agent.- Parameters:
aUserAgent- User agent. Set tonullto unset the user agent.
-
hasPassword
public boolean hasPassword()Is a password defined?- Returns:
trueif the password is defined;falseotherwise.
-
getPassword
Gets the client password.- Returns:
- Client password if defined;
nullotherwise.
-
setPassword
Sets the client password.- Parameters:
aPassword- Client password.
-
hasNewPassword
public boolean hasNewPassword()Is a new password defined?- Returns:
trueif the new password is defined;falseotherwise.
-
getNewPassword
Gets the new client password.- Returns:
- New client password if defined;
nullotherwise.
-
setNewPassword
Sets the new client password.- Parameters:
aNewPassword- New client password.
-
encode
Encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPLoginSec
-
decode
Decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
equals
Compare an instance ofEPPLoginSecwith this instance. -
clone
Clone anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPLoginSec - Throws:
CloneNotSupportedException- standard Object.clone exception
-
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.
-