Package com.verisign.epp.codec.registry
Class EPPRegistryDNSSEC
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryDNSSEC
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPRegistryDNSSEC extends java.lang.Object implements EPPCodecComponent
Defines the DNS Security Extensions (DNSSEC) policies for the server. The <registry:dnssec> element contains the following child elements:
-
<registry:dsDataInterface> - defines the DS Data Interface, as defined
in RFC 5910, policies. Use
getDs()
andsetDs(EPPRegistryDS)
to get and set this element. -
<registry:keyDataInterface> - defines the Key Data Interface, as
defined in RFC 5910, policies. Use
getKey()
andsetKey(EPPRegistryKey)
to get and set this element. -
<registry:maxSigLife> - defines the maximum signature life policies.
Use
getMaxSigLife()
andsetMaxSigLife(EPPRegistryMaxSig)
to get and set this element. -
<registry:urgent> - whether the client can specify the urgent attribute
for DNSSEC updates with a default value of
false
.. UsegetUrgent()
andsetUrgent(Boolean)
to get and set this element.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_NAME
XML Element Name ofEPPRegistryDNSSEC
root element.static java.lang.String
ELM_URGENT
XML tag name for theurgent
attribute.
-
Constructor Summary
Constructors Constructor Description EPPRegistryDNSSEC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPRegistryDNSSEC
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPRegistryDNSSEC
attributes from the aElement DOM Element tree.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPRegistryDNSSEC
instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPRegistryDNSSEC
compare.EPPRegistryDS
getDs()
Get DS Data interface attributes.EPPRegistryKey
getKey()
Get Key Data interface attributes.EPPRegistryMaxSig
getMaxSigLife()
Get max signature life policy.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.java.lang.Boolean
getUrgent()
Get the urgent flag.void
setDs(EPPRegistryDS ds)
Set DS Data interface attributes.void
setKey(EPPRegistryKey key)
Set Key Data interface attributes.void
setMaxSigLife(EPPRegistryMaxSig maxSigLife)
Set max signature life policy.void
setUrgent(java.lang.Boolean urgent)
Set the urgent flag.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistryDNSSEC
root element.- See Also:
- Constant Field Values
-
ELM_URGENT
public static final java.lang.String ELM_URGENT
XML tag name for theurgent
attribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistryDNSSEC
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryDNSSEC
instance. - Throws:
EPPEncodeException
- - Unable to encodeEPPRegistryDNSSEC
instance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryDNSSEC
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryDNSSEC
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryDNSSEC
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPRegistryDNSSEC
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryDNSSEC
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPRegistryDNSSEC
instance to compare with- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getDs
public EPPRegistryDS getDs()
Get DS Data interface attributes.- Returns:
- instance of
EPPRegistryDS
-
setDs
public void setDs(EPPRegistryDS ds)
Set DS Data interface attributes.- Parameters:
ds
- instance ofEPPRegistryDS
-
getKey
public EPPRegistryKey getKey()
Get Key Data interface attributes.- Returns:
- instance of
EPPRegistryKey
-
setKey
public void setKey(EPPRegistryKey key)
Set Key Data interface attributes.- Parameters:
key
- instance ofEPPRegistryKey
-
getMaxSigLife
public EPPRegistryMaxSig getMaxSigLife()
Get max signature life policy.- Returns:
- instance of
EPPRegistryMaxSig
-
setMaxSigLife
public void setMaxSigLife(EPPRegistryMaxSig maxSigLife)
Set max signature life policy.- Parameters:
maxSigLife
- instance ofEPPRegistryMaxSig
-
getUrgent
public java.lang.Boolean getUrgent()
Get the urgent flag.- Returns:
true
if the client can specify the urgent attribute for DNSSEC updates.false
if the client CANNOT specify the urgent attribute for DNSSEC updates.
-
setUrgent
public void setUrgent(java.lang.Boolean urgent)
Set the urgent flag.- Parameters:
urgent
-true
if the client can specify the urgent attribute for DNSSEC updates.false
if the client CANNOT specify the urgent attribute for DNSSEC updates.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-