Package com.verisign.epp.codec.keyrelay
Class EPPKeyRelayExpiry
java.lang.Object
com.verisign.epp.codec.keyrelay.EPPKeyRelayExpiry
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The
EPPKeyRelayExpiry is the EPPCodecComponent that knows how
to encode and decode keyData elements from/to XML and object instance.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance ofEPPKeyRelayExpiry.EPPKeyRelayExpiry(Duration aRelative) Create a new instance ofEPPKeyRelayExpirywith a a relative expiry.EPPKeyRelayExpiry(Date aAbsolute) Create a new instance ofEPPKeyRelayExpirywith an absolute expiry date and time. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPKeyRelayExpiry.voidPopulate the data of this instance with the data stored in the given Element of the DOM treeAppend all data from this secDNS:keyData to the given DOM Documentbooleanimplements a deepEPPKeyRelayExpirycompare.Gets the absolute expiry date and time.Returns the XML namespace associated with theEPPCodecComponent.Gets the relative expiry duration from the current time.voidsetAbsolute(Date aAbsolute) Sets the absolute expiry date and time.voidsetRelative(Duration aRelative) Sets the relative expiry duration from the current time.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPKeyRelayExpiry
public EPPKeyRelayExpiry()Create a new instance ofEPPKeyRelayExpiry. -
EPPKeyRelayExpiry
Create a new instance ofEPPKeyRelayExpirywith an absolute expiry date and time.- Parameters:
aAbsolute- Absolute expiry date and time
-
EPPKeyRelayExpiry
Create a new instance ofEPPKeyRelayExpirywith a a relative expiry.- Parameters:
aRelative- Relative expiry with a duration from the current time
-
-
Method Details
-
encode
Append all data from this secDNS:keyData to the given DOM Document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- The DOM Document to append data to- Returns:
- Encoded DOM
Element - Throws:
EPPEncodeException- Thrown when errors occur during the encode attempt or if the instance is invalid.
-
decode
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The root element of the fragment of XML- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
getAbsolute
Gets the absolute expiry date and time.- Returns:
- the absolute expiry date and time if defined;
nullotherwise
-
setAbsolute
Sets the absolute expiry date and time.- Parameters:
aAbsolute- Absolute expiry date and time
-
getRelative
Gets the relative expiry duration from the current time.- Returns:
- Relative expiry duration from the current time if defined;
nullotherwise
-
setRelative
Sets the relative expiry duration from the current time.- Parameters:
aRelative- Relative expiry duration from the current time
-
equals
implements a deepEPPKeyRelayExpirycompare. -
clone
CloneEPPKeyRelayExpiry.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPKeyRelayExpiry - 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.
-