Class EPPRegistryKey
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
-
- com.verisign.epp.codec.registry.v02.EPPRegistryKey
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryKey extends EPPRegistryAbstractMinMax
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:
EPPRegistryDNSSEC, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_ALGORITHMXML Element Name ofalgorithmsattribute.static java.lang.StringELM_FLAGSXML Element Name offlagsattribute.static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryKey.static java.lang.StringELM_NAMEXML root tag forEPPRegistryKey.static java.lang.StringELM_PROTOCOLXML 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
Constructors Constructor Description EPPRegistryKey()Default constructor.EPPRegistryKey(int aMin, int aMax, java.util.List<java.lang.Integer> aFlags, java.util.List<java.lang.Integer> aProtocols, java.util.List<java.lang.Integer> aAlgorithms)Constructs an instance withmin,maxandListofalgorithms.EPPRegistryKey(java.lang.Integer aMin, java.lang.Integer aMax)Constructs an instance withminandmax.EPPRegistryKey(java.lang.Integer aMin, java.lang.Integer aMax, java.util.List<java.lang.Integer> aFlags, java.util.List<java.lang.Integer> aProtocols, java.util.List<java.lang.Integer> aAlgorithms)Constructs an instance withmin,maxandListofalgorithms.
-
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.voidaddFlags(java.lang.Integer aFlags)Adds one flags field to existing supported flags.voidaddProtocol(java.lang.Integer aProtocol)Adds one protocol to existing the supported protocols.java.lang.Objectclone()CloneEPPRegistryKey.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryKeyattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryKeyinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryKeycompare.java.util.List<java.lang.Integer>getAlgorithms()Gets the supported algorithms.protected java.lang.StringgetElmMax()Gets the maximum element local name.protected java.lang.StringgetElmMin()Gets the minimum element local name.java.util.List<java.lang.Integer>getFlags()Gets the supported flags.protected org.slf4j.LoggergetLogger()Gets theLoggerto use.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.List<java.lang.Integer>getProtocols()Gets the supported protocols.protected java.lang.StringgetRootName()Gets the root element local name.booleanhasAlgorithms()Is the algorithms defined?booleanhasFlags()Is the flags defined?booleanhasProtocols()Is the protocols defined?voidsetAlgorithms(java.util.List<java.lang.Integer> aAlgorithms)Sets the supported algorithms.voidsetFlags(java.util.List<java.lang.Integer> aFlags)Sets the supported flags.voidsetProtocols(java.util.List<java.lang.Integer> aProtocol)Sets the supported protocols.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, setMax, setMin, validateState
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryKey.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryKey.- See Also:
- Constant Field Values
-
ELM_FLAGS
public static final java.lang.String ELM_FLAGS
XML Element Name offlagsattribute.- See Also:
- Constant Field Values
-
ELM_PROTOCOL
public static final java.lang.String ELM_PROTOCOL
XML Element Name ofprotocolattribute.- See Also:
- Constant Field Values
-
ELM_ALGORITHM
public static final java.lang.String ELM_ALGORITHM
XML Element Name ofalgorithmsattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryKey
public EPPRegistryKey()
Default constructor. Must callEPPRegistryAbstractMinMax.setMin(Integer)andEPPRegistryAbstractMinMax.setMax(Integer)before callingencode(Document)method.
-
EPPRegistryKey
public EPPRegistryKey(java.lang.Integer aMin, java.lang.Integer aMax)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(java.lang.Integer aMin, java.lang.Integer aMax, java.util.List<java.lang.Integer> aFlags, java.util.List<java.lang.Integer> aProtocols, java.util.List<java.lang.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, java.util.List<java.lang.Integer> aFlags, java.util.List<java.lang.Integer> aProtocols, java.util.List<java.lang.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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryKey.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryAbstractMinMax- Returns:
- clone of
EPPRegistryKey - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
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
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.
-
hasFlags
public boolean hasFlags()
Is the flags defined?- Returns:
trueif the flags is defined;falseotherwise.
-
getFlags
public java.util.List<java.lang.Integer> getFlags()
Gets the supported flags.- Returns:
Listof supported flags as described in section 2.1.1 of RFC 4034
-
setFlags
public void setFlags(java.util.List<java.lang.Integer> aFlags)
Sets the supported flags.- Parameters:
aFlags-Listof supported flags as described in section 2.1.1 of RFC 4034
-
addFlags
public void addFlags(java.lang.Integer aFlags)
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
public java.util.List<java.lang.Integer> getProtocols()
Gets the supported protocols.- Returns:
Listof supported protocols as described in section 2.1.2 of RFC 4034
-
setProtocols
public void setProtocols(java.util.List<java.lang.Integer> aProtocol)
Sets the supported protocols.- Parameters:
aProtocol-Listof supported protocols as described in section 2.1.2 of RFC 4034
-
addProtocol
public void addProtocol(java.lang.Integer aProtocol)
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
public java.util.List<java.lang.Integer> getAlgorithms()
Gets the supported algorithms.- Returns:
Listof supported algorithms as described in section 2.1.3 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 2.1.3 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 2.1.3 of RFC 4034
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Overrides:
getNamespacein classEPPRegistryAbstractMinMax- Returns:
- XML namespace for the
EPPCodecComponent.
-
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.
-
-