Package com.verisign.epp.codec.registry
Class EPPRegistryKey
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryKey
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
- Direct Known Subclasses:
EPPRegistryDS
Defines the Key Data Interface, as defined in RFC 5910, policies. The
<registry:keyDataInterface> element contains the following child
elements:
- <registry:min> - the minimum number of keys associated with the
domain object. Use
getMin()andsetMin(Integer)to get and set the element. - <registry:max> - the maximum number of keys associated with the
domain object. Use
getMax()andsetMax(Integer)to get and set the element. - <registry:alg> - Zero or more <registry:alg> elements that
define the supported algorithms as described in section 2.1.3 of RFC 4034.
Use
getAlgorithms()andsetAlgorithms(List)to get and set the element. UseaddAlgorithm(String)to add an algorithmStringto an existingList.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryKey(int min, int max, List algorithms) Constructs an instance withmin,maxandListofalgorithms.EPPRegistryKey(Integer min, Integer max, List algorithms) Constructs an instance withmin,maxandListofalgorithms. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlgorithm(String altorithm) Add one algorithm to existing supported algorithms.clone()CloneEPPRegistryKey.voidDecode theEPPRegistryKeyattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryKeyinstance.booleanimplements a deepEPPRegistryKeycompare.Get the supported algorithms.getMax()Get the maximum number of keys.getMin()Get the minimum number of keys.Returns the XML namespace associated with theEPPCodecComponent.Get the root element tag name.voidsetAlgorithms(List algorithms) Set the supported algorithms.voidSet the maximum number of keys.voidSet the minimum number of keys.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryKeyroot element.- See Also:
-
ELM_MIN
XML Element Name ofminattribute.- See Also:
-
ELM_MAX
XML Element Name ofmaxattribute.- See Also:
-
ALGORITHM
XML Element Name ofalgorithmsattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryKey
public EPPRegistryKey()Default constructor. Must callsetMin(Integer)andsetMax(Integer)before callingencode(Document)method. -
EPPRegistryKey
Constructs an instance withmin,maxandListofalgorithms.- Parameters:
min- minimum number of keys associated with the domain objectmax- maximum number of keys associated with the domain objectalgorithms- supported algorithms as described in section 2.1.3 of RFC 4034
-
EPPRegistryKey
Constructs an instance withmin,maxandListofalgorithms.- Parameters:
min- minimum number of keys associated with the domain objectmax- maximum number of keys associated with the domain objectalgorithms- supported algorithms as described in section 2.1.3 of RFC 4034
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryKeyinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryKeyinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryKeyinstance.
-
decode
Decode theEPPRegistryKeyattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryKeyfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryKey.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryKey - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryKeycompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getMin
Get the minimum number of keys.- Returns:
- minimum number of keys associated with the domain object.
-
setMin
Set the minimum number of keys.- Parameters:
min- minimum number of keys associated with the domain object.
-
getMax
Get the maximum number of keys.- Returns:
- maximum number of keys associated with the domain object.
-
setMax
Set the maximum number of keys.- Parameters:
max- maximum number of keys associated with the domain object.
-
getAlgorithms
Get the supported algorithms.- Returns:
Listof supported algorithms as dscsribed in section 2.1.3 of RFC 4034
-
setAlgorithms
Set the supported algorithms.- Parameters:
algorithms-Listof supported algorithms as dscsribed in section 2.1.3 of RFC 4034
-
addAlgorithm
Add one algorithm to existing supported algorithms.- Parameters:
altorithm- supported algorithms as dscsribed in section 2.1.3 of RFC 4034
-
getRootName
Get the root element tag name.- Returns:
ELM_NAME
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-