Class EPPSecDNSExtInfData
java.lang.Object
com.verisign.epp.codec.secdnsext.v11.EPPSecDNSExtInfData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The EPPSecDNSExtInfData is the EPPCodecComponent that knows how to encode and
decode secDNS infData elements from/to XML and object instance.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a new instance ofEPPSecDNSExtInfData.EPPSecDNSExtInfData(List<EPPSecDNSExtDsData> aDsData, List<EPPSecDNSExtKeyData> aKeyData, int aMaxSigLife) Creates a new instance of theEPPSecDNSExtInfDatawith the DS DATA element. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendDsData(EPPSecDNSExtDsData aDsData) Appends to theListof DS DataEPPSecDNSExtDsDatainstances.voidappendKeyData(EPPSecDNSExtKeyData aKeyData) Appends to theListof DS DataEPPSecDNSExtKeyDatainstances to create.clone()CloneEPPSecDNSExtInfData.voidPopulate the data of this instance with the data stored in the given Element of the DOM treeAppend all data from this secDNS create to the given DOM Documentbooleanimplements a deepEPPSecDNSExtInfDatacompare.Gets the dsData.Gets the keyData.intGet secDNS:maxSigLife valueThe namespace associated with this secDNS infData.booleanIs there dsData contained inEPPSecDNSExtInfData?booleanIs there keyData contained inEPPSecDNSExtInfData?booleanDoes secDNS:infData include optional secDNS:maxSigLife?voidsetDsData(List<EPPSecDNSExtDsData> aDsData) Sets theListof DS DataEPPSecDNSExtDsDatainstances.voidsetKeyData(List<EPPSecDNSExtKeyData> aKeyData) Sets theListof DS DataEPPSecDNSExtKeyDatainstances to createvoidsetMaxSigLife(int maxSigLife) Set secDNS:maxSigLife value
-
Field Details
-
UNSPEC_MAX_SIG_LIFE
public static final int UNSPEC_MAX_SIG_LIFEUnspecified maxSigLife value- See Also:
-
MIN_MAX_SIG_LIFE
public static final int MIN_MAX_SIG_LIFEMinimum maxSigLife value- See Also:
-
MAX_MAX_SIG_LIFE
public static final int MAX_MAX_SIG_LIFEMaximum maxSigLife value- See Also:
-
ELM_MAX_SIG_LIFE
The element tag name for maxSigLife- See Also:
-
ELM_NAME
Element tag name for the infData- See Also:
-
-
Constructor Details
-
EPPSecDNSExtInfData
public EPPSecDNSExtInfData()Instantiate a new instance ofEPPSecDNSExtInfData. Set eitherdsDataorkeyDataprior to callingencode(Document). -
EPPSecDNSExtInfData
public EPPSecDNSExtInfData(List<EPPSecDNSExtDsData> aDsData, List<EPPSecDNSExtKeyData> aKeyData, int aMaxSigLife) Creates a new instance of theEPPSecDNSExtInfDatawith the DS DATA element.- Parameters:
aDsData-Listof DS DataEPPSecDNSExtDsDatainstances if using DS Data Interface.aKeyData-Listof Key DataEPPSecDNSExtKeyDatainstance if using Key Data Interface.aMaxSigLife- Child's preference for the number of seconds after signature generation when the parent's signature on the DS information provided by the child will expire. Set toUNSPEC_MAX_SIG_LIFEif there is no preference.
-
-
Method Details
-
getNamespace
The namespace associated with this secDNS infData.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- The namespace associated with secDNS component
-
encode
Append all data from this secDNS create to the given DOM Document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- The DOM Document to append data to- Returns:
- Encoded DOM
Element - Throws:
EPPEncodeException- Thrown when errors occur during the encode attempt or if the instance is invalid.
-
decode
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The root element of the report fragment of XML- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
equals
implements a deepEPPSecDNSExtInfDatacompare. -
clone
CloneEPPSecDNSExtInfData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPSecDNSExtInfData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
hasDsData
public boolean hasDsData()Is there dsData contained inEPPSecDNSExtInfData?- Returns:
trueif list ofEPPSecDNSExtDsDatais notnulland not empty;falseotherwise.
-
getDsData
Gets the dsData.- Returns:
Listof dsDataEPPSecDNSExtDsDatainstances if defined;nullotherwise.
-
setDsData
Sets theListof DS DataEPPSecDNSExtDsDatainstances.- Parameters:
aDsData-ListofEPPSecDNSExtDsDatainstances
-
appendDsData
Appends to theListof DS DataEPPSecDNSExtDsDatainstances.- Parameters:
aDsData-EPPSecDNSExtDsDatainstance
-
hasKeyData
public boolean hasKeyData()Is there keyData contained inEPPSecDNSExtInfData?- Returns:
trueif list ofEPPSecDNSExtKeyDatais notnulland not empty;falseotherwise.
-
getKeyData
Gets the keyData.- Returns:
Listof keyDataEPPSecDNSExtKeyDatainstances if defined;nullotherwise.
-
setKeyData
Sets theListof DS DataEPPSecDNSExtKeyDatainstances to create- Parameters:
aKeyData-ListofEPPSecDNSExtKeyDatainstances
-
appendKeyData
Appends to theListof DS DataEPPSecDNSExtKeyDatainstances to create.- Parameters:
aKeyData-EPPSecDNSExtKeyDatainstance
-
getMaxSigLife
public int getMaxSigLife()Get secDNS:maxSigLife value- Returns:
- an
intvalue representing secDNS:maxSigLife - See Also:
-
setMaxSigLife
public void setMaxSigLife(int maxSigLife) Set secDNS:maxSigLife value- Parameters:
maxSigLife- anintvalue representing secDNS:maxSigLife
-
hasMaxSigLife
public boolean hasMaxSigLife()Does secDNS:infData include optional secDNS:maxSigLife?- Returns:
- true if secDNS:maxSigLife is specified, otherwise false
- See Also:
-