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
EPPRegistryMaxSig
defines the maximum signature lifetime policies.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_CLIENT_DEFINED
XML Element Name ofclientDefined
attribute.static java.lang.String
ELM_DEFAULT
XML Element Name ofdefaultLife
attribute.static java.lang.String
ELM_LOCALNAME
XML local name forEPPRegistryMaxSig
.static java.lang.String
ELM_MAX
XML Element Name ofmax
attribute.static java.lang.String
ELM_MIN
XML Element Name ofmin
attribute.static java.lang.String
ELM_NAME
XML 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.Object
clone()
CloneEPPRegistryMaxSig
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPRegistryMaxSig
attributes from the aElement DOM Element tree.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPRegistryMaxSig
instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPRegistryMaxSig
compare.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".java.lang.Integer
getDefaultLife()
Gets the OPTIONAL default maximum signature lifetime set by the server.java.lang.Integer
getMax()
Gets the OPTIONAL maximum signature lifetime supported.java.lang.Integer
getMin()
Gets the OPTIONAL minimum signature lifetime supported.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.boolean
hasDefaultLife()
Is the default lifetime defined?boolean
hasMax()
Is the maximum signature lifetime defined?boolean
hasMin()
Is the minimum signature lifetime defined?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".void
setDefaultLife(java.lang.Integer aDefaultLife)
Sets the OPTIONAL default maximum signature lifetime set by the server.void
setMax(java.lang.Integer aMax)
Sets the OPTIONAL maximum signature lifetime supported.void
setMin(java.lang.Integer aMin)
Sets the OPTIONAL minimum signature lifetime supported.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation 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 ofclientDefined
attribute.- See Also:
- Constant Field Values
-
ELM_DEFAULT
public static final java.lang.String ELM_DEFAULT
XML Element Name ofdefaultLife
attribute.- See Also:
- Constant Field Values
-
ELM_MIN
public static final java.lang.String ELM_MIN
XML Element Name ofmin
attribute.- See Also:
- Constant Field Values
-
ELM_MAX
public static final java.lang.String ELM_MAX
XML Element Name ofmax
attribute.- 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.FALSE
will be used.aDefaultLife
- Default maximum signature lifetime set by the server. Set tonull
if undefined.aMin
- Minimum signature lifetime supported. Set tonull
if undefined.aMax
- Maximum signature lifetime supported. Set tonull
if 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.FALSE
for 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 EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistryMaxSig
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryMaxSig
instance. - Throws:
EPPEncodeException
- - Unable to encodeEPPRegistryMaxSig
instance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryMaxSig
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryMaxSig
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryMaxSig
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 deepEPPRegistryMaxSig
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPRegistryMaxSig
instance to compare with- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
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 tonull
the default value ofBoolean.FALSE
will be used.
-
hasDefaultLife
public boolean hasDefaultLife()
Is the default lifetime defined?- Returns:
true
if the default lifetime is defined;false
otherwise.
-
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;
null
otherwise.
-
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 tonull
to clear the attribute.
-
hasMin
public boolean hasMin()
Is the minimum signature lifetime defined?- Returns:
true
if the minimum signature lifetime is defined;false
otherwise.
-
getMin
public java.lang.Integer getMin()
Gets the OPTIONAL minimum signature lifetime supported.- Returns:
- Minimum signature lifetime supported if defined;
null
otherwise.
-
setMin
public void setMin(java.lang.Integer aMin)
Sets the OPTIONAL minimum signature lifetime supported.- Parameters:
aMin
- Minimum signature lifetime supported. Set tonull
to clear the attribute.
-
hasMax
public boolean hasMax()
Is the maximum signature lifetime defined?- Returns:
true
if the maximum signature lifetime is defined;false
otherwise.
-
getMax
public java.lang.Integer getMax()
Gets the OPTIONAL maximum signature lifetime supported.- Returns:
- Maximum signature lifetime supported if defined;
null
otherwise.
-
setMax
public void setMax(java.lang.Integer aMax)
Sets the OPTIONAL maximum signature lifetime supported.- Parameters:
aMax
- Maximum signature lifetime supported. Set tonull
to clear the attribute.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-