Class EPPRegistryMaxSig
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryMaxSig
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPRegistryMaxSig defines the maximum signature lifetime policies.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML Element Name ofclientDefinedattribute.static final StringXML Element Name ofdefaultLifeattribute.static final StringXML local name forEPPRegistryMaxSig.static final StringXML Element Name ofmaxattribute.static final StringXML Element Name ofminattribute.static final StringXML root tag forEPPRegistryMaxSig. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryMaxSig(boolean aClientDefined, int aDefaultLife, int aMin, int aMax) Constructor that takes all attributes as parameters.EPPRegistryMaxSig(Boolean aClientDefined, Integer aDefaultLife, Integer aMin, Integer aMax) Constructor that takes all attributes as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryMaxSig.voidDecode theEPPRegistryMaxSigattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryMaxSiginstance.booleanimplements a deepEPPRegistryMaxSigcompare.Gets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".Gets the OPTIONAL default maximum signature lifetime set by the server.getMax()Gets the OPTIONAL maximum signature lifetime supported.getMin()Gets the OPTIONAL minimum signature lifetime supported.Returns the XML namespace associated with theEPPCodecComponent.booleanIs the default lifetime defined?booleanhasMax()Is the maximum signature lifetime defined?booleanhasMin()Is the minimum signature lifetime defined?voidsetClientDefined(Boolean aClientDefined) Sets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".voidsetDefaultLife(Integer aDefaultLife) Sets the OPTIONAL default maximum signature lifetime set by the server.voidSets the OPTIONAL maximum signature lifetime supported.voidSets the OPTIONAL minimum signature lifetime supported.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryMaxSig.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryMaxSig.- See Also:
-
ELM_CLIENT_DEFINED
XML Element Name ofclientDefinedattribute.- See Also:
-
ELM_DEFAULT
XML Element Name ofdefaultLifeattribute.- See Also:
-
ELM_MIN
XML Element Name ofminattribute.- See Also:
-
ELM_MAX
XML Element Name ofmaxattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryMaxSig
public EPPRegistryMaxSig()Default constructor. -
EPPRegistryMaxSig
Constructor that takes all attributes as parameters.- Parameters:
aClientDefined- Boolean flag indicating whether the client can set the maximum signature lifetime. If set tonull,Boolean.FALSEwill be used.aDefaultLife- Default maximum signature lifetime set by the server. Set tonullif undefined.aMin- Minimum signature lifetime supported. Set tonullif undefined.aMax- Maximum signature lifetime supported. Set tonullif undefined.
-
EPPRegistryMaxSig
public EPPRegistryMaxSig(boolean aClientDefined, int aDefaultLife, int aMin, int aMax) Constructor that takes all attributes as parameters.- Parameters:
aClientDefined- Boolean flag indicating whether the client can set the maximum signature lifetime. Must be set toBoolean.FALSEfor this constructor, since the minimum and maximum signature lifetime attributes will be defined.aDefaultLife- Default maximum signature lifetime set by the server.aMin- Minimum signature lifetime supported.aMax- Maximum signature lifetime supported.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryMaxSiginstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryMaxSiginstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryMaxSiginstance.
-
decode
Decode theEPPRegistryMaxSigattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryMaxSigfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryMaxSig.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryMaxSig - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryMaxSigcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getClientDefined
Gets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".- Returns:
- Boolean flag indicating whether the client can set the maximum
signature lifetime with a default value
Boolean.FALSE.
-
setClientDefined
Sets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".- Parameters:
aClientDefined- Boolean flag indicating whether the client can set the maximum signature lifetime. If set tonullthe default value ofBoolean.FALSEwill be used.
-
hasDefaultLife
public boolean hasDefaultLife()Is the default lifetime defined?- Returns:
trueif the default lifetime is defined;falseotherwise.
-
getDefaultLife
Gets the OPTIONAL default maximum signature lifetime set by the server.- Returns:
- Default maximum signature lifetime set by the server. if defined;
nullotherwise.
-
setDefaultLife
Sets the OPTIONAL default maximum signature lifetime set by the server.- Parameters:
aDefaultLife- Default maximum signature lifetime set by the server. Set tonullto clear the attribute.
-
hasMin
public boolean hasMin()Is the minimum signature lifetime defined?- Returns:
trueif the minimum signature lifetime is defined;falseotherwise.
-
getMin
Gets the OPTIONAL minimum signature lifetime supported.- Returns:
- Minimum signature lifetime supported if defined;
nullotherwise.
-
setMin
Sets the OPTIONAL minimum signature lifetime supported.- Parameters:
aMin- Minimum signature lifetime supported. Set tonullto clear the attribute.
-
hasMax
public boolean hasMax()Is the maximum signature lifetime defined?- Returns:
trueif the maximum signature lifetime is defined;falseotherwise.
-
getMax
Gets the OPTIONAL maximum signature lifetime supported.- Returns:
- Maximum signature lifetime supported if defined;
nullotherwise.
-
setMax
Sets the OPTIONAL maximum signature lifetime supported.- Parameters:
aMax- Maximum signature lifetime supported. Set tonullto clear the attribute.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-