Class EPPRegistryKey
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
com.verisign.epp.codec.registry.v02.EPPRegistryKey
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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
EPPRegistryAbstractMinMax.getMin()andEPPRegistryAbstractMinMax.setMin(Integer)to get and set the element. - <registry:max> - the maximum number of keys associated with the
domain object. Use
EPPRegistryAbstractMinMax.getMax()andEPPRegistryAbstractMinMax.setMax(Integer)to get and set the element. - <registry:flags> - Zero or more <registry:flags> elements
that define the supported flags field values, as described in section 2.1.1
of RFC 4034. Use
getFlags()andsetFlags(List)to get and set the element. UseaddFlags(Integer)to add an flags fieldIntegerto an existingList. - <registry:protocol> - Zero or more <registry:protocol>
elements that define the supported protocols as described in section 2.1.2 of
RFC 4034. Use
getProtocols()andsetProtocols(List)to get and set the element. UseaddProtocol(Integer)to add an algorithmIntegerto an existingList. - <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(Integer)to add an algorithmIntegerto an existingList.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML Element Name ofalgorithmsattribute.static final StringXML Element Name offlagsattribute.static final StringXML local name forEPPRegistryKey.static final StringXML root tag forEPPRegistryKey.static final StringXML Element Name ofprotocolattribute.Fields inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryKey(int aMin, int aMax, List<Integer> aFlags, List<Integer> aProtocols, List<Integer> aAlgorithms) Constructs an instance withmin,maxandListofalgorithms.EPPRegistryKey(Integer aMin, Integer aMax) Constructs an instance withminandmax.EPPRegistryKey(Integer aMin, Integer aMax, List<Integer> aFlags, List<Integer> aProtocols, List<Integer> aAlgorithms) Constructs an instance withmin,maxandListofalgorithms. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlgorithm(Integer aAlgorithm) Adds one algorithm to existing supported algorithms.voidAdds one flags field to existing supported flags.voidaddProtocol(Integer aProtocol) Adds one protocol to existing the supported protocols.clone()CloneEPPRegistryKey.voidDecode theEPPRegistryKeyattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryKeyinstance.booleanimplements a deepEPPRegistryKeycompare.Gets the supported algorithms.protected StringGets the maximum element local name.protected StringGets the minimum element local name.getFlags()Gets the supported flags.protected org.slf4j.LoggerGets theLoggerto use.Returns the XML namespace associated with theEPPCodecComponent.Gets the supported protocols.protected StringGets the root element local name.booleanIs the algorithms defined?booleanhasFlags()Is the flags defined?booleanIs the protocols defined?voidsetAlgorithms(List<Integer> aAlgorithms) Sets the supported algorithms.voidSets the supported flags.voidsetProtocols(List<Integer> aProtocol) Sets the supported protocols.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, setMax, setMin, validateState
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryKey.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryKey.- See Also:
-
ELM_FLAGS
XML Element Name offlagsattribute.- See Also:
-
ELM_PROTOCOL
XML Element Name ofprotocolattribute.- See Also:
-
ELM_ALGORITHM
XML Element Name ofalgorithmsattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryKey
public EPPRegistryKey()Default constructor. Must callEPPRegistryAbstractMinMax.setMin(Integer)andEPPRegistryAbstractMinMax.setMax(Integer)before callingencode(Document)method. -
EPPRegistryKey
Constructs an instance withminandmax.- Parameters:
aMin- minimum number of keys associated with the domain objectaMax- maximum number of keys associated with the domain object
-
EPPRegistryKey
public EPPRegistryKey(Integer aMin, Integer aMax, List<Integer> aFlags, List<Integer> aProtocols, List<Integer> aAlgorithms) Constructs an instance withmin,maxandListofalgorithms.- Parameters:
aMin- minimum number of keys associated with the domain objectaMax- maximum number of keys associated with the domain objectaFlags- supported flags as described in section 2.1.1 of RFC 4034aProtocols- supported protocols as described in section 2.1.2 of RFC 4034aAlgorithms- supported algorithms as described in section 2.1.3 of RFC 4034
-
EPPRegistryKey
public EPPRegistryKey(int aMin, int aMax, List<Integer> aFlags, List<Integer> aProtocols, List<Integer> aAlgorithms) Constructs an instance withmin,maxandListofalgorithms.- Parameters:
aMin- minimum number of keys associated with the domain objectaMax- maximum number of keys associated with the domain objectaFlags- supported flags as described in section 2.1.1 of RFC 4034aProtocols- supported protocols as described in section 2.1.2 of RFC 4034aAlgorithms- 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- Overrides:
encodein classEPPRegistryAbstractMinMax- 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- Overrides:
decodein classEPPRegistryAbstractMinMax- Parameters:
aElement- Root DOM Element to decodeEPPRegistryKeyfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryKey.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryAbstractMinMax- Returns:
- clone of
EPPRegistryKey - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryKeycompare.- Overrides:
equalsin classEPPRegistryAbstractMinMax- Parameters:
aObject-EPPRegistryKeyinstance 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.
-
hasFlags
public boolean hasFlags()Is the flags defined?- Returns:
trueif the flags is defined;falseotherwise.
-
getFlags
Gets the supported flags.- Returns:
Listof supported flags as described in section 2.1.1 of RFC 4034
-
setFlags
Sets the supported flags.- Parameters:
aFlags-Listof supported flags as described in section 2.1.1 of RFC 4034
-
addFlags
Adds one flags field to existing supported flags.- Parameters:
aFlags- supported flags field as described in section 2.1.1 of RFC 4034
-
hasProtocols
public boolean hasProtocols()Is the protocols defined?- Returns:
trueif the protocols is defined;falseotherwise.
-
getProtocols
Gets the supported protocols.- Returns:
Listof supported protocols as described in section 2.1.2 of RFC 4034
-
setProtocols
Sets the supported protocols.- Parameters:
aProtocol-Listof supported protocols as described in section 2.1.2 of RFC 4034
-
addProtocol
Adds one protocol to existing the supported protocols.- Parameters:
aProtocol- supported protocol as described in section 2.1.2 of RFC 4034
-
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 2.1.3 of RFC 4034
-
setAlgorithms
Sets the supported algorithms.- Parameters:
aAlgorithms-Listof supported algorithms as described in section 2.1.3 of RFC 4034
-
addAlgorithm
Adds one algorithm to existing supported algorithms.- Parameters:
aAlgorithm- supported algorithm as described in section 2.1.3 of RFC 4034
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Overrides:
getNamespacein classEPPRegistryAbstractMinMax- Returns:
- XML namespace for the
EPPCodecComponent.
-
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.
-