Package com.verisign.epp.codec.keyrelay
Class EPPKeyRelayData
java.lang.Object
com.verisign.epp.codec.keyrelay.EPPKeyRelayData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The
EPPKeyRelayData 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 ofEPPKeyRelayDataEPPKeyRelayData(EPPKeyRelayKeyData aKeyData) Create a new instance ofEPPKeyRelayDatawith the required key data.EPPKeyRelayData(EPPKeyRelayKeyData aKeyData, EPPKeyRelayExpiry aExpiry) Create a new instance ofEPPKeyRelayDatawith the required key data and the optional expiry. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPKeyRelayData.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 deepEPPKeyRelayDatacompare.Gets the optional expected lifetime of the relayed key(s) in the zone.Gets the DNSSEC key material.Returns the XML namespace associated with theEPPCodecComponent.voidsetExpiry(EPPKeyRelayExpiry aExpiry) Sets the optional expected lifetime of the relayed key(s) in the zone.voidsetKeyData(EPPKeyRelayKeyData aKeyData) Sets the DNSSEC key material.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPKeyRelayData
public EPPKeyRelayData()Create a new instance ofEPPKeyRelayData -
EPPKeyRelayData
Create a new instance ofEPPKeyRelayDatawith the required key data. -
EPPKeyRelayData
Create a new instance ofEPPKeyRelayDatawith the required key data and the optional expiry.
-
-
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.
-
equals
implements a deepEPPKeyRelayDatacompare. -
clone
CloneEPPKeyRelayData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPKeyRelayData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getKeyData
Gets the DNSSEC key material.- Returns:
- DNSSEC key material
-
setKeyData
Sets the DNSSEC key material.- Parameters:
aKeyData- DNSSEC key material
-
getExpiry
Gets the optional expected lifetime of the relayed key(s) in the zone.- Returns:
- Expected lifetime of the relayed key(s) in the zone if defined;
nullotherwise.
-
setExpiry
Sets the optional expected lifetime of the relayed key(s) in the zone.- Parameters:
aExpiry- Expected lifetime of the relayed key(s) in the zone. Set tonullto unset it.
-
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.
-