Class EPPRegistryMaxSig
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryMaxSig
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryMaxSig extends java.lang.Object implements EPPCodecComponent
EPPRegistryMaxSigdefines the maximum signature lifetime policies.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_CLIENT_DEFINEDXML Element Name ofclientDefinedattribute.static java.lang.StringELM_DEFAULTXML Element Name ofdefaultLifeattribute.static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryMaxSig.static java.lang.StringELM_MAXXML Element Name ofmaxattribute.static java.lang.StringELM_MINXML Element Name ofminattribute.static java.lang.StringELM_NAMEXML root tag forEPPRegistryMaxSig.
-
Constructor Summary
Constructors Constructor Description EPPRegistryMaxSig()Default constructor.EPPRegistryMaxSig(boolean aClientDefined, int aDefaultLife, int aMin, int aMax)Constructor that takes all attributes as parameters.EPPRegistryMaxSig(java.lang.Boolean aClientDefined, java.lang.Integer aDefaultLife, java.lang.Integer aMin, java.lang.Integer aMax)Constructor that takes all attributes as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryMaxSig.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryMaxSigattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryMaxSiginstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryMaxSigcompare.java.lang.BooleangetClientDefined()Gets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".java.lang.IntegergetDefaultLife()Gets the OPTIONAL default maximum signature lifetime set by the server.java.lang.IntegergetMax()Gets the OPTIONAL maximum signature lifetime supported.java.lang.IntegergetMin()Gets the OPTIONAL minimum signature lifetime supported.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanhasDefaultLife()Is the default lifetime defined?booleanhasMax()Is the maximum signature lifetime defined?booleanhasMin()Is the minimum signature lifetime defined?voidsetClientDefined(java.lang.Boolean aClientDefined)Sets the OPTIONAL boolean flag indicating whether the client can set the maximum signature lifetime with a default value of "false".voidsetDefaultLife(java.lang.Integer aDefaultLife)Sets the OPTIONAL default maximum signature lifetime set by the server.voidsetMax(java.lang.Integer aMax)Sets the OPTIONAL maximum signature lifetime supported.voidsetMin(java.lang.Integer aMin)Sets the OPTIONAL minimum signature lifetime supported.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryMaxSig.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryMaxSig.- See Also:
- Constant Field Values
-
ELM_CLIENT_DEFINED
public static final java.lang.String ELM_CLIENT_DEFINED
XML Element Name ofclientDefinedattribute.- See Also:
- Constant Field Values
-
ELM_DEFAULT
public static final java.lang.String ELM_DEFAULT
XML Element Name ofdefaultLifeattribute.- See Also:
- Constant Field Values
-
ELM_MIN
public static final java.lang.String ELM_MIN
XML Element Name ofminattribute.- See Also:
- Constant Field Values
-
ELM_MAX
public static final java.lang.String ELM_MAX
XML Element Name ofmaxattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryMaxSig
public EPPRegistryMaxSig()
Default constructor.
-
EPPRegistryMaxSig
public EPPRegistryMaxSig(java.lang.Boolean aClientDefined, java.lang.Integer aDefaultLife, java.lang.Integer aMin, java.lang.Integer aMax)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 Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryMaxSig.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryMaxSig - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryMaxSigcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryMaxSiginstance 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 classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getClientDefined
public java.lang.Boolean 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
public void setClientDefined(java.lang.Boolean aClientDefined)
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
public java.lang.Integer 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
public void setDefaultLife(java.lang.Integer aDefaultLife)
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
public java.lang.Integer getMin()
Gets the OPTIONAL minimum signature lifetime supported.- Returns:
- Minimum signature lifetime supported if defined;
nullotherwise.
-
setMin
public void setMin(java.lang.Integer aMin)
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
public java.lang.Integer getMax()
Gets the OPTIONAL maximum signature lifetime supported.- Returns:
- Maximum signature lifetime supported if defined;
nullotherwise.
-
setMax
public void setMax(java.lang.Integer aMax)
Sets the OPTIONAL maximum signature lifetime supported.- Parameters:
aMax- Maximum signature lifetime supported. Set tonullto clear the attribute.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-