Class EPPRegistryDS
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
-
- com.verisign.epp.codec.registry.v02.EPPRegistryDS
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPRegistryDS extends EPPRegistryAbstractMinMax
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
EPPRegistryAbstractMinMax.getMin()
andEPPRegistryAbstractMinMax.setMin(Integer)
to get and set the element. - <registry:max> - the maximum number of DS associated with the
domain object. Use
EPPRegistryAbstractMinMax.getMax()
andEPPRegistryAbstractMinMax.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
getAlgorithms()
andsetAlgorithms(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_ALGORITHM
XML Element Name ofalgorithms
attribute.static java.lang.String
ELM_DIGEST
XML tag name for thedigestTypeF
attribute.static java.lang.String
ELM_LOCALNAME
XML local name forEPPRegistryDS
.static java.lang.String
ELM_NAME
XML root tag forEPPRegistryDS
.-
Fields inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH
-
-
Constructor Summary
Constructors Constructor Description EPPRegistryDS()
Constructs a newEPPRegistryDS
object.EPPRegistryDS(int aMin, int aMax, java.util.List<java.lang.Integer> aAlgorithms, java.util.List<java.lang.Integer> aDigestTypes)
Constructs a newEPPRegistryDS
with given values.EPPRegistryDS(java.lang.Integer aMin, java.lang.Integer aMax)
Constructs a newEPPRegistryDS
with a min and a max value.EPPRegistryDS(java.lang.Integer aMin, java.lang.Integer aMax, java.util.List<java.lang.Integer> aAlgorithms, java.util.List<java.lang.Integer> aDigestTypes)
Constructs a newEPPRegistryDS
with given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAlgorithm(java.lang.Integer aAlgorithm)
Adds one algorithm to existing supported algorithms.void
addDigestType(java.lang.Integer 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<java.lang.Integer>
getAlgorithms()
Gets the supported algorithms.java.util.List<java.lang.Integer>
getDigestTypes()
Get digest types.protected java.lang.String
getElmMax()
Gets the maximum element local name.protected java.lang.String
getElmMin()
Gets the minimum element local name.protected org.slf4j.Logger
getLogger()
Gets theLogger
to use.protected java.lang.String
getRootName()
Gets the root element local name.boolean
hasAlgorithms()
Is the algorithms defined?void
setAlgorithms(java.util.List<java.lang.Integer> aAlgorithms)
Sets the supported algorithms.void
setDigestTypes(java.util.List<java.lang.Integer> aDigestTypes)
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.v02.EPPRegistryAbstractMinMax
getMax, getMin, getNamespace, setMax, setMin, validateState
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryDS
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryDS
.- See Also:
- Constant Field Values
-
ELM_ALGORITHM
public static final java.lang.String ELM_ALGORITHM
XML Element Name ofalgorithms
attribute.- 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 callEPPRegistryAbstractMinMax.setMin(Integer)
andEPPRegistryAbstractMinMax.setMax(Integer)
before callingencode(Document)
method.
-
EPPRegistryDS
public EPPRegistryDS(java.lang.Integer aMin, java.lang.Integer aMax)
Constructs a newEPPRegistryDS
with a min and a max value.- Parameters:
aMin
- minimum number of DS associated with the domain objectaMax
- maximum number of DS associated with the domain object
-
EPPRegistryDS
public EPPRegistryDS(java.lang.Integer aMin, java.lang.Integer aMax, java.util.List<java.lang.Integer> aAlgorithms, java.util.List<java.lang.Integer> aDigestTypes)
Constructs a newEPPRegistryDS
with given values.- Parameters:
aMin
- minimum number of DS associated with the domain objectaMax
- maximum number of DS associated with the domain objectaAlgorithms
-List
of algorithmString
aDigestTypes
-List
of digest typeString
-
EPPRegistryDS
public EPPRegistryDS(int aMin, int aMax, java.util.List<java.lang.Integer> aAlgorithms, java.util.List<java.lang.Integer> aDigestTypes)
Constructs a newEPPRegistryDS
with given values.- Parameters:
aMin
- minimum number of DS associated with the domain objectaMax
- maximum number of DS associated with the domain objectaAlgorithms
-List
of algorithmString
aDigestTypes
-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 classEPPRegistryAbstractMinMax
- 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 classEPPRegistryAbstractMinMax
- 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 classEPPRegistryAbstractMinMax
- 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 classEPPRegistryAbstractMinMax
- 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 classEPPRegistryAbstractMinMax
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
hasAlgorithms
public boolean hasAlgorithms()
Is the algorithms defined?- Returns:
true
if the algorithms is defined;false
otherwise.
-
getAlgorithms
public java.util.List<java.lang.Integer> getAlgorithms()
Gets the supported algorithms.- Returns:
List
of supported algorithms as described in section 5.1.2 of RFC 4034
-
setAlgorithms
public void setAlgorithms(java.util.List<java.lang.Integer> aAlgorithms)
Sets the supported algorithms.- Parameters:
aAlgorithms
-List
of supported algorithms as described in section 5.1.2 of RFC 4034
-
addAlgorithm
public void addAlgorithm(java.lang.Integer aAlgorithm)
Adds one algorithm to existing supported algorithms.- Parameters:
aAlgorithm
- supported algorithm as described in section 5.1.2 of RFC 4034
-
getDigestTypes
public java.util.List<java.lang.Integer> getDigestTypes()
Get digest types.- Returns:
List
of digest type inString
-
setDigestTypes
public void setDigestTypes(java.util.List<java.lang.Integer> aDigestTypes)
Set digest types.- Parameters:
aDigestTypes
-List
of digest type inString
-
addDigestType
public void addDigestType(java.lang.Integer digestType)
Add one digest type to an existing list.- Parameters:
digestType
- digest type inString
-
getRootName
protected java.lang.String getRootName()
Gets the root element local name.- Specified by:
getRootName
in classEPPRegistryAbstractMinMax
- Returns:
- Root element local name.
-
getElmMin
protected java.lang.String getElmMin()
Gets the minimum element local name.- Specified by:
getElmMin
in classEPPRegistryAbstractMinMax
- Returns:
- Minimum element local name.
-
getElmMax
protected java.lang.String getElmMax()
Gets the maximum element local name.- Specified by:
getElmMax
in classEPPRegistryAbstractMinMax
- Returns:
- Maximum element local name.
-
getLogger
protected org.slf4j.Logger getLogger()
Gets theLogger
to use.- Specified by:
getLogger
in classEPPRegistryAbstractMinMax
- Returns:
Logger
instance to use for logging.
-
-