Class EPPSecDNSExtUpdate
- java.lang.Object
-
- com.verisign.epp.codec.secdnsext.v11.EPPSecDNSExtUpdate
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPSecDNSExtUpdate extends java.lang.Object implements EPPCodecComponent
The EPPSecDNSExtUpdate is the EPPCodecComponent that knows how to encode and decode secDNS update 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_ADDElement tag name for the addstatic java.lang.StringELM_CHGElement tag name for the chgstatic java.lang.StringELM_MAX_SIG_LIFEThe element tag name for maxSigLifestatic java.lang.StringELM_NAMEElement tag name for the updatestatic java.lang.StringELM_REMElement tag name for the remstatic intMAX_MAX_SIG_LIFEMaximum maxSigLife valuestatic intMIN_MAX_SIG_LIFEMinimum maxSigLife valuestatic intUNSPEC_MAX_SIG_LIFEUnspecified maxSigLife value
-
Constructor Summary
Constructors Constructor Description EPPSecDNSExtUpdate()Instantiate a new instance of EPPSecDNSExtUpdate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendAddDsData(EPPSecDNSExtDsData aDsData)Appends to theListof DS DataEPPSecDNSExtDsDatainstances to add.voidappendAddKeyData(EPPSecDNSExtKeyData aKeyData)Appends to theListof Key DataEPPSecDNSExtKeyDatainstances to add.voidappendRemDsData(EPPSecDNSExtDsData aDsData)Appends to theListof DS DataEPPSecDNSExtDsDatainstances to remove.voidappendRemKeyData(EPPSecDNSExtKeyData aKeyData)Appends to theListof Key DataEPPSecDNSExtKeyDatainstances to remove.java.lang.Objectclone()CloneEPPSecDNSExtUpdate.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 update to the given DOM Documentbooleanequals(java.lang.Object aObject)implements a deepEPPSecDNSExtUpdatecompare.java.util.ListgetAddDsData()Gets the dsData add list.java.util.ListgetAddKeyData()Gets the keyData add list.intgetMaxSigLife()Get secDNS:maxSigLife valuejava.lang.StringgetNamespace()The namespace associated with this secDNS update.java.util.ListgetRemDsData()Gets the dsData remove list.java.util.ListgetRemKeyData()Gets the keyData remove list.booleanhasAddDsData()Is there dsData contained in the dsData add list?booleanhasAddKeyData()Is there keyData contained in the keyData add list?booleanhasChg()Is there are change (chg) element included in the update.booleanhasMaxSigLife()Does secDNS:chg include optional secDNS:maxSigLife?booleanhasRemDsData()Is there dsData contained in the dsData remove list?booleanhasRemKeyData()Is there keyData contained in the keyData remove list?booleanisRemAllData()Remove all DS / Key Data?booleanisUrgent()Is the update request urgent?voidsetAddDsData(java.util.List aAddDsData)Sets theListof DS DataEPPSecDNSExtDsDatainstances to add.voidsetAddKeyData(java.util.List aAddKeyData)Sets theListof Key DataEPPSecDNSExtKeyDatainstances to add.voidsetMaxSigLife(int maxSigLife)Set secDNS:maxSigLife valuevoidsetRemAllData(boolean aRemAllData)Sets the flag for removing all DS / Key Data.voidsetRemDsData(java.util.List aRemDsData)Sets theListof DS DataEPPSecDNSExtDsDatainstances to remove.voidsetRemKeyData(java.util.List aRemKeyData)Sets theListof Key DataEPPSecDNSExtKeyDatainstances to remove.voidsetUrgent(boolean urgent)Sets the urgent attribute.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
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_NAME
public static final java.lang.String ELM_NAME
Element tag name for the update- See Also:
- Constant Field Values
-
ELM_ADD
public static final java.lang.String ELM_ADD
Element tag name for the add- See Also:
- Constant Field Values
-
ELM_CHG
public static final java.lang.String ELM_CHG
Element tag name for the chg- See Also:
- Constant Field Values
-
ELM_REM
public static final java.lang.String ELM_REM
Element tag name for the rem- 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
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
The namespace associated with this secDNS update.- 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 update 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 deepEPPSecDNSExtUpdatecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPSecDNSExtUpdateinstance to compare with- Returns:
- true if equal false otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPSecDNSExtUpdate.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPSecDNSExtUpdate - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
hasAddDsData
public boolean hasAddDsData()
Is there dsData contained in the dsData add list?- Returns:
trueif add list ofEPPSecDNSExtDsDatais notnulland not empty;falseotherwise.
-
getAddDsData
public java.util.List getAddDsData()
Gets the dsData add list.- Returns:
Listof dsDataEPPSecDNSExtDsDatainstances if defined;nullotherwise.
-
setAddDsData
public void setAddDsData(java.util.List aAddDsData)
Sets theListof DS DataEPPSecDNSExtDsDatainstances to add.- Parameters:
aAddDsData-ListofEPPSecDNSExtDsDatainstances
-
appendAddDsData
public void appendAddDsData(EPPSecDNSExtDsData aDsData)
Appends to theListof DS DataEPPSecDNSExtDsDatainstances to add.- Parameters:
aDsData-EPPSecDNSExtDsDatainstance
-
hasRemDsData
public boolean hasRemDsData()
Is there dsData contained in the dsData remove list?- Returns:
trueif remove list ofEPPSecDNSExtDsDatais notnulland not empty;falseotherwise.
-
getRemDsData
public java.util.List getRemDsData()
Gets the dsData remove list.- Returns:
Listof dsDataEPPSecDNSExtDsDatainstances if defined;nullotherwise.
-
setRemDsData
public void setRemDsData(java.util.List aRemDsData)
Sets theListof DS DataEPPSecDNSExtDsDatainstances to remove.- Parameters:
aRemDsData-ListofEPPSecDNSExtDsDatainstances
-
appendRemDsData
public void appendRemDsData(EPPSecDNSExtDsData aDsData)
Appends to theListof DS DataEPPSecDNSExtDsDatainstances to remove.- Parameters:
aDsData-EPPSecDNSExtDsDatainstance
-
setRemAllData
public void setRemAllData(boolean aRemAllData)
Sets the flag for removing all DS / Key Data.- Parameters:
aRemAllData-trueto remove all DS / Key Data;falseotherwise.
-
isRemAllData
public boolean isRemAllData()
Remove all DS / Key Data?- Returns:
trueto remove all DS / Key Data;falseotherwise.
-
hasAddKeyData
public boolean hasAddKeyData()
Is there keyData contained in the keyData add list?- Returns:
trueif add list ofEPPSecDNSExtKeyDatais notnulland not empty;falseotherwise.
-
getAddKeyData
public java.util.List getAddKeyData()
Gets the keyData add list.- Returns:
Listof keyDataEPPSecDNSExtKeyDatainstances if defined;nullotherwise.
-
setAddKeyData
public void setAddKeyData(java.util.List aAddKeyData)
Sets theListof Key DataEPPSecDNSExtKeyDatainstances to add.- Parameters:
aAddKeyData-ListofEPPSecDNSExtKeyDatainstances
-
appendAddKeyData
public void appendAddKeyData(EPPSecDNSExtKeyData aKeyData)
Appends to theListof Key DataEPPSecDNSExtKeyDatainstances to add.- Parameters:
aKeyData-EPPSecDNSExtKeyDatainstance
-
hasRemKeyData
public boolean hasRemKeyData()
Is there keyData contained in the keyData remove list?- Returns:
trueif remove list ofEPPSecDNSExtKeyDatais notnulland not empty;falseotherwise.
-
getRemKeyData
public java.util.List getRemKeyData()
Gets the keyData remove list.- Returns:
Listof dsDataEPPSecDNSExtKeyDatainstances if defined;nullotherwise.
-
setRemKeyData
public void setRemKeyData(java.util.List aRemKeyData)
Sets theListof Key DataEPPSecDNSExtKeyDatainstances to remove.- Parameters:
aRemKeyData-ListofEPPSecDNSExtKeyDatainstances
-
appendRemKeyData
public void appendRemKeyData(EPPSecDNSExtKeyData aKeyData)
Appends to theListof Key DataEPPSecDNSExtKeyDatainstances to remove.- Parameters:
aKeyData-EPPSecDNSExtKeyDatainstance
-
isUrgent
public boolean isUrgent()
Is the update request urgent?- Returns:
- Returns
trueif the client has asked the server operator to process the update command with a high priority;falseotherwise.
-
setUrgent
public void setUrgent(boolean urgent)
Sets the urgent attribute.- Parameters:
urgent- The urgent value to set.
-
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:chg include optional secDNS:maxSigLife?- Returns:
- true if secDNS:maxSigLife is specified, otherwise false
- See Also:
UNSPEC_MAX_SIG_LIFE
-
hasChg
public boolean hasChg()
Is there are change (chg) element included in the update. Currently the only change element is secDNS:maxSigLife.- Returns:
trueif a change element is defined;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.
-
-