Class EPPLoginSecEvent
java.lang.Object
com.verisign.epp.codec.loginsec.v1_0.EPPLoginSecEvent
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Login Security Event that identifies a security warning or error for the
client to address. There may be many
EPPLoginSecEvent instances
in the EPPLoginSecData extension to the
EPPResponse. The
EPPLoginSecEvent includes a set of generic attributes and an
extensible set of types to support a large set of possible security events.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLoginSecEvent.EPPLoginSecEvent(EventType aType, EventLevel aLevel) EPPLoginSecEventconstructor that takes the required attributes of type and level.EPPLoginSecEvent(EventType aType, EventLevel aLevel, String aDescription) EPPLoginSecEventconstructor that takes required attributes and a description.EPPLoginSecEvent(EventType aType, EventLevel aLevel, String aValue, String aDescription) EPPLoginSecEventconstructor that takes likely attribute for a value event.EPPLoginSecEvent(EventType aType, EventLevel aLevel, Date aExDate, String aDescription) EPPLoginSecEventconstructor that takes likely attributes for an expiry event.EPPLoginSecEvent(EventType aType, String aTypeName, EventLevel aLevel, String aDescription) EPPLoginSecEventconstructor that takes likely attributes for a custom event.EPPLoginSecEvent(EventType aType, String aTypeName, EventLevel aLevel, String aValue, String aDuration, String aDescription) EPPLoginSecEventconstructor that takes likely attribute for a statistical event. -
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 ofEPPLoginSecEventwith this instance.Gets the optional description for the event.Gets the optional duration associated with a statistical warning event.Gets the optional expiration of the event item (e.g., password, client certificate).getLang()Gets the optional language of the description with the default ofDEFAULT_LANG("en").getLevel()Gets the event level.Returns the XML namespace associated with theEPPCodecComponent.getType()Gets the type for the security event.Gets the optional sub-type or the custom type name of the event.getValue()Gets the optional value associated with the event (e.g., cipher of an cipher event or TLS protocol of a TLS protocol event).booleanIs the description set?booleanIs the duration set?booleanIs the expiration date set?booleanIs the type name (custom type or sub-type) set?booleanhasValue()Is the event value set?voidsetDescription(String aDescription) Sets the optional description for the event.voidsetDuration(String aDuration) Sets the optional duration associated with a statistical warning event.voidSets the optional expiration of the event item (e.g., password, client certificate).voidSets the optional language of the description with the default ofDEFAULT_LANG("en").voidsetLevel(EventLevel aLevel) Sets the event level.voidSets the type of the security event.voidsetTypeName(String aTypeName) Sets the optional sub-type or the custom type name of the event.voidSets the optional value associated with the event (e.g., cipher of an cipher event or TLS protocol of a TLS protocol event).toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
DEFAULT_LANG
The default language of the description, which is "en".- See Also:
-
ELM_LOCALNAME
XML local name forEPPLoginSecEvent.- See Also:
-
ELM_NAME
XML root tag forEPPLoginSecEvent.- See Also:
-
-
Constructor Details
-
EPPLoginSecEvent
public EPPLoginSecEvent()Default constructor forEPPLoginSecEvent. -
EPPLoginSecEvent
EPPLoginSecEventconstructor that takes the required attributes of type and level.- Parameters:
aType- Event typeaLevel- Event level
-
EPPLoginSecEvent
EPPLoginSecEventconstructor that takes required attributes and a description.- Parameters:
aType- Event typeaLevel- Event levelaDescription- Option description of event. Set tonullfor no description.
-
EPPLoginSecEvent
EPPLoginSecEventconstructor that takes likely attributes for an expiry event.- Parameters:
aType- Event typeaLevel- Event levelaExDate- Expiration date of eventaDescription- Option description of event. Set tonullfor no description.
-
EPPLoginSecEvent
EPPLoginSecEventconstructor that takes likely attribute for a value event.- Parameters:
aType- Event typeaLevel- Event levelaValue- Value of eventaDescription- Option description of event. Set tonullfor no description.
-
EPPLoginSecEvent
EPPLoginSecEventconstructor that takes likely attributes for a custom event.- Parameters:
aType- Event typeaTypeName- Custom type nameaLevel- Event levelaDescription- Option description of event. Set tonullfor no description.
-
EPPLoginSecEvent
public EPPLoginSecEvent(EventType aType, String aTypeName, EventLevel aLevel, String aValue, String aDuration, String aDescription) EPPLoginSecEventconstructor that takes likely attribute for a statistical event.- Parameters:
aType- Event typeaTypeName- Statistical sub-type nameaLevel- Event levelaValue- Value of eventaDuration- Duration of the eventaDescription- Option description of event. Set tonullfor no description.
-
-
Method Details
-
getType
Gets the type for the security event.- Returns:
- Type of the security event if set;
nullotherwise.
-
setType
Sets the type of the security event.- Parameters:
aType- The type of the security event
-
hasTypeName
public boolean hasTypeName()Is the type name (custom type or sub-type) set?- Returns:
trueif the type name is defined;falseotherwise.
-
getTypeName
Gets the optional sub-type or the custom type name of the event. If the type is set toEventType.CUSTOM, then the type name must be set.- Returns:
- Gets the optional type name if set;
nullotherwise.
-
setTypeName
Sets the optional sub-type or the custom type name of the event.- Parameters:
aTypeName- Sub-type or custom type name of the event.
-
getLevel
Gets the event level.- Returns:
- Level of the event if defined;
nullotherwise.
-
setLevel
Sets the event level.- Parameters:
aLevel- Level of the event
-
hasExDate
public boolean hasExDate()Is the expiration date set?- Returns:
trueif the expiration date is defined;falseotherwise.
-
getExDate
Gets the optional expiration of the event item (e.g., password, client certificate). The client must address the event prior to the expiration date and time.- Returns:
- The expiration date and time if set;
nullotherwise.
-
setExDate
Sets the optional expiration of the event item (e.g., password, client certificate). The client must address the event prior to the expiration date and time.- Parameters:
aExDate- Expiration date and time of the event item
-
hasValue
public boolean hasValue()Is the event value set?- Returns:
trueif the event value is defined;falseotherwise.
-
getValue
Gets the optional value associated with the event (e.g., cipher of an cipher event or TLS protocol of a TLS protocol event).- Returns:
- The event value if defined;
nullotherwise.
-
setValue
Sets the optional value associated with the event (e.g., cipher of an cipher event or TLS protocol of a TLS protocol event).- Parameters:
aValue- Event value to set
-
hasDuration
public boolean hasDuration()Is the duration set?- Returns:
trueif the duration is defined;falseotherwise.
-
getDuration
Gets the optional duration associated with a statistical warning event. The duration follows the format of an XML schema duration type.- Returns:
- The duration if defined;
nullotherwise.
-
setDuration
Sets the optional duration associated with a statistical warning event. The duration follows the format of an XML schema duration type.- Parameters:
aDuration- The duration to set
-
getLang
Gets the optional language of the description with the default ofDEFAULT_LANG("en").- Returns:
- The language of the description
-
setLang
Sets the optional language of the description with the default ofDEFAULT_LANG("en").- Parameters:
aLang- Language of the description
-
hasDescription
public boolean hasDescription()Is the description set?- Returns:
trueif the description is defined;falseotherwise.
-
getDescription
Gets the optional description for the event. The language of the description is defined bygetLang().- Returns:
- The description if defined;
nullotherwise.
-
setDescription
Sets the optional description for the event. If the language is not English ("en"), set the language usingsetLang(String).- Parameters:
aDescription- The description to set.
-
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 encodingEPPLoginSecEvent
-
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 ofEPPLoginSecEventwith this instance. -
clone
Clone anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPLoginSecEvent - 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.
-