Class EPPSecDNSExtCreate
- java.lang.Object
-
- com.verisign.epp.codec.secdnsext.v11.EPPSecDNSExtCreate
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPSecDNSExtCreate extends java.lang.Object implements EPPCodecComponent
The EPPSecDNSExtCreate is the EPPCodecComponent that knows how to encode and decode secDNS create elements from/to XML and object instance.Title: EPP 1.0 secDNS
Description: secDNS Extension to the EPP SDK
Copyright: Copyright (c) 2010
Company: VeriSign
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_MAX_SIG_LIFEThe element tag name for maxSigLifestatic java.lang.StringELM_NAMEElement tag name for the createstatic intMAX_MAX_SIG_LIFEMaximum maxSigLife valuestatic intMIN_MAX_SIG_LIFEMinimum maxSigLife valuestatic intUNSPEC_MAX_SIG_LIFEUnspecified maxSigLife value
-
Constructor Summary
Constructors Constructor Description EPPSecDNSExtCreate()Instantiate a new instance ofEPPSecDNSExtCreate.EPPSecDNSExtCreate(java.util.List aDsData, java.util.List aKeyData, int aMaxSigLife)Creates a new instance of theEPPSecDNSExtCreatewith the DS DATA element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendDsData(EPPSecDNSExtDsData aDsData)Appends to theListof DS DataEPPSecDNSExtDsDatainstances to create.voidappendKeyData(EPPSecDNSExtKeyData aKeyData)Appends to theListof DS DataEPPSecDNSExtKeyDatainstances to create.java.lang.Objectclone()CloneEPPSecDNSExtCreate.voiddecode(org.w3c.dom.Element aElement)Populate the data of this instance with the data stored in the given Element of the DOM treeorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Append all data from this secDNS create to the given DOM Documentbooleanequals(java.lang.Object aObject)implements a deepEPPSecDNSExtCreatecompare.java.util.ListgetDsData()Gets the dsData.java.util.ListgetKeyData()Gets the keyData.intgetMaxSigLife()Get secDNS:maxSigLife valuejava.lang.StringgetNamespace()The namespace associated with this secDNS create.booleanhasDsData()Is there dsData contained inEPPSecDNSExtCreate?booleanhasKeyData()Is there keyData contained inEPPSecDNSExtCreate?booleanhasMaxSigLife()Does secDNS:create include optional secDNS:maxSigLife?voidsetDsData(java.util.List aDsData)Sets theListof DS DataEPPSecDNSExtDsDatainstances to createvoidsetKeyData(java.util.List aKeyData)Sets theListof DS DataEPPSecDNSExtKeyDatainstances to createvoidsetMaxSigLife(int maxSigLife)Set secDNS:maxSigLife value
-
-
-
Field Detail
-
UNSPEC_MAX_SIG_LIFE
public static final int UNSPEC_MAX_SIG_LIFE
Unspecified maxSigLife value- See Also:
- Constant Field Values
-
MIN_MAX_SIG_LIFE
public static final int MIN_MAX_SIG_LIFE
Minimum maxSigLife value- See Also:
- Constant Field Values
-
MAX_MAX_SIG_LIFE
public static final int MAX_MAX_SIG_LIFE
Maximum maxSigLife value- See Also:
- Constant Field Values
-
ELM_MAX_SIG_LIFE
public static final java.lang.String ELM_MAX_SIG_LIFE
The element tag name for maxSigLife- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Element tag name for the create- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPSecDNSExtCreate
public EPPSecDNSExtCreate()
Instantiate a new instance ofEPPSecDNSExtCreate. Set eitherdsDataorkeyDataprior to callingencode(Document).
-
EPPSecDNSExtCreate
public EPPSecDNSExtCreate(java.util.List aDsData, java.util.List 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 Detail
-
getNamespace
public java.lang.String getNamespace()
The namespace associated with this secDNS create.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- The namespace associated with secDNS component
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionAppend 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionPopulate 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
public boolean equals(java.lang.Object aObject)
implements a deepEPPSecDNSExtCreatecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPSecDNSExtCreateinstance to compare with- Returns:
- true if equal false otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPSecDNSExtCreate.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPSecDNSExtCreate - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
hasDsData
public boolean hasDsData()
Is there dsData contained inEPPSecDNSExtCreate?- Returns:
trueif list ofEPPSecDNSExtDsDatais notnulland not empty;falseotherwise.
-
getDsData
public java.util.List getDsData()
Gets the dsData.- Returns:
Listof dsDataEPPSecDNSExtDsDatainstances if defined;nullotherwise.
-
setDsData
public void setDsData(java.util.List aDsData)
Sets theListof DS DataEPPSecDNSExtDsDatainstances to create- Parameters:
aDsData-ListofEPPSecDNSExtDsDatainstances
-
appendDsData
public void appendDsData(EPPSecDNSExtDsData aDsData)
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
public java.util.List getKeyData()
Gets the keyData.- Returns:
Listof keyDataEPPSecDNSExtKeyDatainstances if defined;nullotherwise.
-
setKeyData
public void setKeyData(java.util.List aKeyData)
Sets theListof DS DataEPPSecDNSExtKeyDatainstances to create- Parameters:
aKeyData-ListofEPPSecDNSExtKeyDatainstances
-
appendKeyData
public void appendKeyData(EPPSecDNSExtKeyData aKeyData)
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:
hasMaxSigLife(),UNSPEC_MAX_SIG_LIFE
-
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
- See Also:
UNSPEC_MAX_SIG_LIFE
-
-