Class EPPSecDNSExtCreate
java.lang.Object
com.verisign.epp.codec.secdnsext.v11.EPPSecDNSExtCreate
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The EPPSecDNSExtCreate is the EPPCodecComponent that knows how to encode and
decode secDNS create elements from/to XML and object instance.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a new instance ofEPPSecDNSExtCreate.EPPSecDNSExtCreate(List<EPPSecDNSExtDsData> aDsData, List<EPPSecDNSExtKeyData> aKeyData, int aMaxSigLife) Creates a new instance of theEPPSecDNSExtCreatewith the DS DATA element. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendDsData(EPPSecDNSExtDsData aDsData) Appends to theListof DS DataEPPSecDNSExtDsDatainstances to create.voidappendKeyData(EPPSecDNSExtKeyData aKeyData) Appends to theListof DS DataEPPSecDNSExtKeyDatainstances to create.clone()CloneEPPSecDNSExtCreate.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 deepEPPSecDNSExtCreatecompare.Gets the dsData.Gets the keyData.intGet secDNS:maxSigLife valueThe namespace associated with this secDNS create.booleanIs there dsData contained inEPPSecDNSExtCreate?booleanIs there keyData contained inEPPSecDNSExtCreate?booleanDoes secDNS:create include optional secDNS:maxSigLife?voidsetDsData(List<EPPSecDNSExtDsData> aDsData) Sets theListof DS DataEPPSecDNSExtDsDatainstances to createvoidsetKeyData(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 create- See Also:
-
-
Constructor Details
-
EPPSecDNSExtCreate
public EPPSecDNSExtCreate()Instantiate a new instance ofEPPSecDNSExtCreate. Set eitherdsDataorkeyDataprior to callingencode(Document). -
EPPSecDNSExtCreate
public EPPSecDNSExtCreate(List<EPPSecDNSExtDsData> aDsData, List<EPPSecDNSExtKeyData> aKeyData, int aMaxSigLife) Creates a new instance of theEPPSecDNSExtCreatewith 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 create.- 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 deepEPPSecDNSExtCreatecompare. -
clone
CloneEPPSecDNSExtCreate.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPSecDNSExtCreate - Throws:
CloneNotSupportedException- standard Object.clone exception
-
hasDsData
public boolean hasDsData()Is there dsData contained inEPPSecDNSExtCreate?- Returns:
trueif list ofEPPSecDNSExtDsDatais notnulland not empty;falseotherwise.
-
getDsData
Gets the dsData.- Returns:
Listof dsDataEPPSecDNSExtDsDatainstances if defined;nullotherwise.
-
setDsData
Sets theListof DS DataEPPSecDNSExtDsDatainstances to create- Parameters:
aDsData-ListofEPPSecDNSExtDsDatainstances
-
appendDsData
Appends to theListof DS DataEPPSecDNSExtDsDatainstances to create.- Parameters:
aDsData-EPPSecDNSExtDsDatainstance
-
hasKeyData
public boolean hasKeyData()Is there keyData contained inEPPSecDNSExtCreate?- 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
-
setMaxSigLife
public void setMaxSigLife(int maxSigLife) Set secDNS:maxSigLife value- Parameters:
maxSigLife- anintvalue representing secDNS:maxSigLife
-
hasMaxSigLife
public boolean hasMaxSigLife()Does secDNS:create include optional secDNS:maxSigLife?- Returns:
- true if secDNS:maxSigLife is specified, otherwise false
-