Package com.verisign.epp.codec.registry
Class EPPRegistryDS
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryKey
-
- com.verisign.epp.codec.registry.EPPRegistryDS
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPRegistryDS extends EPPRegistryKey
Defines the DS Data Interface, as defined in RFC 5910, policies. The <registry:dsDataInterface> element contains the following child elements:
- <registry:min> - the minimum number of DS associated with the
domain object. Use
EPPRegistryKey.getMin()
andEPPRegistryKey.setMin(Integer)
to get and set the element. - <registry:max> - the maximum number of DS associated with the
domain object. Use
EPPRegistryKey.getMax()
andEPPRegistryKey.setMax(Integer)
to get and set the element. - <registry:alg> - zero or more <registry:alg> elements that
define the supported algorithms as described in section 5.1.2 of RFC 4034.
Use
EPPRegistryKey.getAlgorithms()
andEPPRegistryKey.setAlgorithms(List)
to get and set the element. - <registry:digestType> - zero or more <registry:digestType>
elements that define the supported digest types as described in section 5.1.3
of RFC 4034. Use
getDigestTypes()
andsetDigestTypes(List)
to get and set the element.
- See Also:
EPPRegistryDNSSEC
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_DIGEST
XML tag name for thedigestTypeF
attribute.static java.lang.String
ELM_NAME
XML Element Name ofEPPRegistryDS
root element.-
Fields inherited from class com.verisign.epp.codec.registry.EPPRegistryKey
ALGORITHM, ELM_MAX, ELM_MIN
-
-
Constructor Summary
Constructors Constructor Description EPPRegistryDS()
Constructs a newEPPRegistryDS
object.EPPRegistryDS(int min, int max, java.util.List algorithms, java.util.List digestTypes)
Constructs a newEPPRegistryDS
with given values.EPPRegistryDS(java.lang.Integer min, java.lang.Integer max, java.util.List algorithms, java.util.List digestTypes)
Constructs a newEPPRegistryDS
with given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDigestType(java.lang.String digestType)
Add one digest type to an existing list.java.lang.Object
clone()
CloneEPPRegistryDS
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPRegistryDS
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 theEPPRegistryDS
instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPRegistryDS
compare.java.util.List
getDigestTypes()
Get digest types.java.lang.String
getRootName()
DOCUMENT ME!void
setDigestTypes(java.util.List digestTypes)
Set digest types.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.-
Methods inherited from class com.verisign.epp.codec.registry.EPPRegistryKey
addAlgorithm, getAlgorithms, getMax, getMin, getNamespace, setAlgorithms, setMax, setMin
-
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistryDS
root element.- See Also:
- Constant Field Values
-
ELM_DIGEST
public static final java.lang.String ELM_DIGEST
XML tag name for thedigestTypeF
attribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryDS
public EPPRegistryDS()
Constructs a newEPPRegistryDS
object. All attributes are set to default. Must callEPPRegistryKey.setMin(Integer)
andEPPRegistryKey.setMax(Integer)
before callingencode(Document)
method.
-
EPPRegistryDS
public EPPRegistryDS(java.lang.Integer min, java.lang.Integer max, java.util.List algorithms, java.util.List digestTypes)
Constructs a newEPPRegistryDS
with given values.- Parameters:
min
- minimum number of DS associated with the domain objectmax
- maximum number of DS associated with the domain objectalgorithms
-List
of algorithmString
digestTypes
-List
of digest typeString
-
EPPRegistryDS
public EPPRegistryDS(int min, int max, java.util.List algorithms, java.util.List digestTypes)
Constructs a newEPPRegistryDS
with given values.- Parameters:
min
- minimum number of DS associated with the domain objectmax
- maximum number of DS associated with the domain objectalgorithms
-List
of algorithmString
digestTypes
-List
of digest typeString
-
-
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 theEPPRegistryDS
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- Overrides:
encode
in classEPPRegistryKey
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryDS
instance. - Throws:
EPPEncodeException
- - Unable to encodeEPPRegistryDS
instance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryDS
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Overrides:
decode
in classEPPRegistryKey
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryDS
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryDS
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classEPPRegistryKey
- Returns:
- clone of
EPPRegistryDS
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryDS
compare.- Overrides:
equals
in classEPPRegistryKey
- Parameters:
aObject
-EPPRegistryDS
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 classEPPRegistryKey
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getDigestTypes
public java.util.List getDigestTypes()
Get digest types.- Returns:
List
of digest type inString
-
setDigestTypes
public void setDigestTypes(java.util.List digestTypes)
Set digest types.- Parameters:
digestTypes
-List
of digest type inString
-
addDigestType
public void addDigestType(java.lang.String digestType)
Add one digest type to an existing list.- Parameters:
digestType
- digest type inString
-
getRootName
public java.lang.String getRootName()
DOCUMENT ME!- Overrides:
getRootName
in classEPPRegistryKey
- Returns:
- DOCUMENT ME!
-
-