Class EPPLoginSecData
java.lang.Object
com.verisign.epp.codec.loginsec.v1_0.EPPLoginSecData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Login Security Data Extension that extends an
EPPResponse to support passing security
event information back to the client.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLoginSecData.EPPLoginSecData(List<EPPLoginSecEvent> aEvents) EPPLoginSecDataconstructor that takes the list of security events. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(EPPLoginSecEvent aEvent) Adds an event to the list of security events.clone()Clone anEPPCodecComponentinstance.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPLoginSecDatawith this instance.Gets the list of security events.Returns the XML namespace associated with theEPPCodecComponent.booleanhasEvent()Has at least one set security event?voidsetEvents(List<EPPLoginSecEvent> aEvents) Sets the list of security events.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPLoginSecData.- See Also:
-
ELM_NAME
XML root tag forEPPLoginSecData.- See Also:
-
-
Constructor Details
-
EPPLoginSecData
public EPPLoginSecData()Default constructor forEPPLoginSecData. -
EPPLoginSecData
EPPLoginSecDataconstructor that takes the list of security events.- Parameters:
aEvents- List of security events.
-
-
Method Details
-
hasEvent
public boolean hasEvent()Has at least one set security event?- Returns:
trueif there is at least one security event;falseotherwise.
-
addEvent
Adds an event to the list of security events.- Parameters:
aEvent- Event to add.
-
getEvents
Gets the list of security events.- Returns:
- List of
EPPLoginSecEventinstances. The list should never benull.
-
setEvents
Sets the list of security events.- Parameters:
aEvents- List ofEPPLoginSecEventinstances.
-
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 encodingEPPLoginSecData
-
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 ofEPPLoginSecDatawith this instance. -
clone
Clone anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPLoginSecData - 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.
-