Class EPPRegistryDS
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
com.verisign.epp.codec.registry.v02.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
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML Element Name ofalgorithmsattribute.static final StringXML tag name for thedigestTypeFattribute.static final StringXML local name forEPPRegistryDS.static final StringXML 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
ConstructorsConstructorDescriptionConstructs a newEPPRegistryDSobject.EPPRegistryDS(int aMin, int aMax, List<Integer> aAlgorithms, List<Integer> aDigestTypes) Constructs a newEPPRegistryDSwith given values.EPPRegistryDS(Integer aMin, Integer aMax) Constructs a newEPPRegistryDSwith a min and a max value.Constructs a newEPPRegistryDSwith given values. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlgorithm(Integer aAlgorithm) Adds one algorithm to existing supported algorithms.voidaddDigestType(Integer 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.Gets the supported algorithms.Get digest types.protected StringGets the maximum element local name.protected StringGets the minimum element local name.protected org.slf4j.LoggerGets theLoggerto use.protected StringGets the root element local name.booleanIs the algorithms defined?voidsetAlgorithms(List<Integer> aAlgorithms) Sets the supported algorithms.voidsetDigestTypes(List<Integer> aDigestTypes) 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.v02.EPPRegistryAbstractMinMax
getMax, getMin, getNamespace, setMax, setMin, validateState
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryDS.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryDS.- See Also:
-
ELM_ALGORITHM
XML Element Name ofalgorithmsattribute.- 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 callEPPRegistryAbstractMinMax.setMin(Integer)andEPPRegistryAbstractMinMax.setMax(Integer)before callingencode(Document)method. -
EPPRegistryDS
Constructs a newEPPRegistryDSwith 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(Integer aMin, Integer aMax, List<Integer> aAlgorithms, List<Integer> aDigestTypes) Constructs a newEPPRegistryDSwith given values.- Parameters:
aMin- minimum number of DS associated with the domain objectaMax- maximum number of DS associated with the domain objectaAlgorithms-Listof algorithmStringaDigestTypes-Listof digest typeString
-
EPPRegistryDS
Constructs a newEPPRegistryDSwith given values.- Parameters:
aMin- minimum number of DS associated with the domain objectaMax- maximum number of DS associated with the domain objectaAlgorithms-Listof algorithmStringaDigestTypes-Listof digest typeString
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryDSinstance.- Specified by:
encodein interfaceEPPCodecComponent- Overrides:
encodein classEPPRegistryAbstractMinMax- 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 classEPPRegistryAbstractMinMax- Parameters:
aElement- Root DOM Element to decodeEPPRegistryDSfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryDS.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryAbstractMinMax- Returns:
- clone of
EPPRegistryDS - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryDScompare.- Overrides:
equalsin classEPPRegistryAbstractMinMax- 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 classEPPRegistryAbstractMinMax- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
hasAlgorithms
public boolean hasAlgorithms()Is the algorithms defined?- Returns:
trueif the algorithms is defined;falseotherwise.
-
getAlgorithms
Gets the supported algorithms.- Returns:
Listof supported algorithms as described in section 5.1.2 of RFC 4034
-
setAlgorithms
Sets the supported algorithms.- Parameters:
aAlgorithms-Listof supported algorithms as described in section 5.1.2 of RFC 4034
-
addAlgorithm
Adds one algorithm to existing supported algorithms.- Parameters:
aAlgorithm- supported algorithm as described in section 5.1.2 of RFC 4034
-
getDigestTypes
Get digest types.- Returns:
Listof digest type inString
-
setDigestTypes
Set digest types.- Parameters:
aDigestTypes-Listof digest type inString
-
addDigestType
Add one digest type to an existing list.- Parameters:
digestType- digest type inString
-
getRootName
Gets the root element local name.- Specified by:
getRootNamein classEPPRegistryAbstractMinMax- Returns:
- Root element local name.
-
getElmMin
Gets the minimum element local name.- Specified by:
getElmMinin classEPPRegistryAbstractMinMax- Returns:
- Minimum element local name.
-
getElmMax
Gets the maximum element local name.- Specified by:
getElmMaxin classEPPRegistryAbstractMinMax- Returns:
- Maximum element local name.
-
getLogger
protected org.slf4j.Logger getLogger()Gets theLoggerto use.- Specified by:
getLoggerin classEPPRegistryAbstractMinMax- Returns:
Loggerinstance to use for logging.
-