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.StringELM_NAMEXML Element Name ofEPPRegistryDNSSECroot element.static java.lang.StringELM_URGENTXML tag name for theurgentattribute.
-
Constructor Summary
Constructors Constructor Description EPPRegistryDNSSEC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryDNSSEC.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryDNSSECattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryDNSSECinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryDNSSECcompare.EPPRegistryDSgetDs()Get DS Data interface attributes.EPPRegistryKeygetKey()Get Key Data interface attributes.EPPRegistryMaxSiggetMaxSigLife()Get max signature life policy.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.BooleangetUrgent()Get the urgent flag.voidsetDs(EPPRegistryDS ds)Set DS Data interface attributes.voidsetKey(EPPRegistryKey key)Set Key Data interface attributes.voidsetMaxSigLife(EPPRegistryMaxSig maxSigLife)Set max signature life policy.voidsetUrgent(java.lang.Boolean urgent)Set the urgent flag.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistryDNSSECroot element.- See Also:
- Constant Field Values
-
ELM_URGENT
public static final java.lang.String ELM_URGENT
XML tag name for theurgentattribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryDNSSECinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryDNSSECinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryDNSSECinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryDNSSECattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryDNSSECfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryDNSSEC.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein 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 deepEPPRegistryDNSSECcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryDNSSECinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
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:
trueif the client can specify the urgent attribute for DNSSEC updates.falseif the client CANNOT specify the urgent attribute for DNSSEC updates.
-
setUrgent
public void setUrgent(java.lang.Boolean urgent)
Set the urgent flag.- Parameters:
urgent-trueif the client can specify the urgent attribute for DNSSEC updates.falseif 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:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-