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,Serializable,Cloneable
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML tag name for thedigestTypeFattribute.static final StringXML Element Name ofEPPRegistryDSroot element.Fields inherited from class com.verisign.epp.codec.registry.EPPRegistryKey
ALGORITHM, ELM_MAX, ELM_MIN -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newEPPRegistryDSobject.EPPRegistryDS(int min, int max, List algorithms, List digestTypes) Constructs a newEPPRegistryDSwith given values.EPPRegistryDS(Integer min, Integer max, List algorithms, List digestTypes) Constructs a newEPPRegistryDSwith given values. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDigestType(String digestType) Add one digest type to an existing list.clone()CloneEPPRegistryDS.voidDecode theEPPRegistryDSattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryDSinstance.booleanimplements a deepEPPRegistryDScompare.Get digest types.DOCUMENT ME!voidsetDigestTypes(List digestTypes) Set digest types.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.registry.EPPRegistryKey
addAlgorithm, getAlgorithms, getMax, getMin, getNamespace, setAlgorithms, setMax, setMin
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryDSroot element.- See Also:
-
ELM_DIGEST
XML tag name for thedigestTypeFattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryDS
public EPPRegistryDS()Constructs a newEPPRegistryDSobject. All attributes are set to default. Must callEPPRegistryKey.setMin(Integer)andEPPRegistryKey.setMax(Integer)before callingencode(Document)method. -
EPPRegistryDS
Constructs a newEPPRegistryDSwith given values.- Parameters:
min- minimum number of DS associated with the domain objectmax- maximum number of DS associated with the domain objectalgorithms-Listof algorithmStringdigestTypes-Listof digest typeString
-
EPPRegistryDS
Constructs a newEPPRegistryDSwith given values.- Parameters:
min- minimum number of DS associated with the domain objectmax- maximum number of DS associated with the domain objectalgorithms-Listof algorithmStringdigestTypes-Listof digest typeString
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryDSinstance.- Specified by:
encodein interfaceEPPCodecComponent- Overrides:
encodein classEPPRegistryKey- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryDSinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryDSinstance.
-
decode
Decode theEPPRegistryDSattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Overrides:
decodein classEPPRegistryKey- Parameters:
aElement- Root DOM Element to decodeEPPRegistryDSfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryDS.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryKey- Returns:
- clone of
EPPRegistryDS - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryDScompare.- Overrides:
equalsin classEPPRegistryKey- Parameters:
aObject-EPPRegistryDSinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPRegistryKey- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getDigestTypes
Get digest types.- Returns:
Listof digest type inString
-
setDigestTypes
Set digest types.- Parameters:
digestTypes-Listof digest type inString
-
addDigestType
Add one digest type to an existing list.- Parameters:
digestType- digest type inString
-
getRootName
DOCUMENT ME!- Overrides:
getRootNamein classEPPRegistryKey- Returns:
- DOCUMENT ME!
-