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.StringELM_ALGORITHMXML Element Name ofalgorithmsattribute.static java.lang.StringELM_DIGESTXML tag name for thedigestTypeFattribute.static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryDS.static java.lang.StringELM_NAMEXML 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 newEPPRegistryDSobject.EPPRegistryDS(int aMin, int aMax, java.util.List<java.lang.Integer> aAlgorithms, java.util.List<java.lang.Integer> aDigestTypes)Constructs a newEPPRegistryDSwith given values.EPPRegistryDS(java.lang.Integer aMin, java.lang.Integer aMax)Constructs a newEPPRegistryDSwith 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 newEPPRegistryDSwith given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlgorithm(java.lang.Integer aAlgorithm)Adds one algorithm to existing supported algorithms.voidaddDigestType(java.lang.Integer digestType)Add one digest type to an existing list.java.lang.Objectclone()CloneEPPRegistryDS.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryDSattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryDSinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryDScompare.java.util.List<java.lang.Integer>getAlgorithms()Gets the supported algorithms.java.util.List<java.lang.Integer>getDigestTypes()Get digest types.protected java.lang.StringgetElmMax()Gets the maximum element local name.protected java.lang.StringgetElmMin()Gets the minimum element local name.protected org.slf4j.LoggergetLogger()Gets theLoggerto use.protected java.lang.StringgetRootName()Gets the root element local name.booleanhasAlgorithms()Is the algorithms defined?voidsetAlgorithms(java.util.List<java.lang.Integer> aAlgorithms)Sets the supported algorithms.voidsetDigestTypes(java.util.List<java.lang.Integer> aDigestTypes)Set digest types.java.lang.StringtoString()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 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 ofalgorithmsattribute.- See Also:
- Constant Field Values
-
ELM_DIGEST
public static final java.lang.String ELM_DIGEST
XML tag name for thedigestTypeFattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryDS
public EPPRegistryDS()
Constructs a newEPPRegistryDSobject. 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 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(java.lang.Integer aMin, java.lang.Integer aMax, java.util.List<java.lang.Integer> aAlgorithms, java.util.List<java.lang.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
public EPPRegistryDS(int aMin, int aMax, java.util.List<java.lang.Integer> aAlgorithms, java.util.List<java.lang.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
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryDS.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryAbstractMinMax- Returns:
- clone of
EPPRegistryDS - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
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
public java.lang.String 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
public java.util.List<java.lang.Integer> getAlgorithms()
Gets the supported algorithms.- Returns:
Listof 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-Listof 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:
Listof digest type inString
-
setDigestTypes
public void setDigestTypes(java.util.List<java.lang.Integer> aDigestTypes)
Set digest types.- Parameters:
aDigestTypes-Listof 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:
getRootNamein classEPPRegistryAbstractMinMax- Returns:
- Root element local name.
-
getElmMin
protected java.lang.String getElmMin()
Gets the minimum element local name.- Specified by:
getElmMinin classEPPRegistryAbstractMinMax- Returns:
- Minimum element local name.
-
getElmMax
protected java.lang.String 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.
-
-