Class EPPSecDNSExtDsData
java.lang.Object
com.verisign.epp.codec.secdnsext.v10.EPPSecDNSExtDsData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The EPPSecDNSExtDsData is the EPPCodecComponent that knows how to encode and
decode secDNS dsData elements from/to XML and object instance.
Title: EPP 1.0 secDNS
Description: secDNS Extension to the EPP SDK
Copyright: Copyright (c) 2006
Company: VeriSign
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe element tag name for maxSigLifestatic final intMaximum alg valuestatic final intMaximum digestType valuestatic final intMaximum keyTag valuestatic final intMaximum maxSigLife valuestatic final intMinimum alg valuestatic final intMinimum digestType valuestatic final intMinimum keyTag valuestatic final intMinimum maxSigLife valuestatic final inthttp://www.ietf.org/rfc/rfc4034.txt
A.2.static final intUnspecified alg valuestatic final intUnspecified digestType valuestatic final intUnspecified keyTag valuestatic final intUnspecified maxSigLife value -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new empty instance of EPPSecDNSExtDsDataEPPSecDNSExtDsData(int keyTag) Create a new instance of EPPSecDNSExtDsData with the given values.EPPSecDNSExtDsData(int keyTag, int alg, int digestType, String digest) Create a new instance of EPPSecDNSExtDsData with the given values.EPPSecDNSExtDsData(int keyTag, int alg, int digestType, String digest, int maxSigLife) Create a new instance of EPPSecDNSExtDsData with the given values.EPPSecDNSExtDsData(int keyTag, int alg, int digestType, String digest, int maxSigLife, EPPSecDNSExtKeyData keyData) Create a new instance of EPPSecDNSExtDsData with the given values.EPPSecDNSExtDsData(int keyTag, int alg, int digestType, String digest, EPPSecDNSExtKeyData keyData) Create a new instance of EPPSecDNSExtDsData with the given values.EPPSecDNSExtDsData(EPPSecDNSExtDsData dsData) Create a new instance (copy) of EPPSecDNSExtDsDataEPPSecDNSExtDsData(Integer keyTag) Create a new instance of EPPSecDNSExtDsData with the given values. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPSecDNSExtDsData.voidPopulate the data of this instance with the data stored in the given Element of the DOM treeAppend all data from this secDNS:dsData to the given DOM Documentbooleanimplements a deepEPPSecDNSExtDsDatacompare.intgetAlg()Get secDNS:alg valueGet secDNS:digest valueintGet secDNS:digestType valueGet secDNS:keyData valueintGet secDNS:keyTag valueintGet secDNS:maxSigLife valueReturns the XML namespace associated with theEPPCodecComponent.booleanDoes secDNS:dsData include optional secDNS:keyData?booleanDoes secDNS:dsData include optional secDNS:maxSigLife?voidsetAlg(int alg) Set secDNS:alg valuevoidSet secDNS:digest value This method will remove all whitespace and force UPPER case in an effort to produce the canonical representation for hexBinary as defined by http://www.w3.org/TR/xmlschema-2/#hexBinaryvoidsetDigestType(int digestType) Set secDNS:digestType valuevoidsetKeyData(EPPSecDNSExtKeyData keyData) Set secDNS:keyData valuevoidsetKeyTag(int keyTag) Set secDNS:keyTag valuevoidSet secDNS:keyTag valuevoidsetMaxSigLife(int maxSigLife) Set secDNS:maxSigLife valuetoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_MAX_SIG_LIFE
The element tag name for maxSigLife- See Also:
-
UNSPEC_KEY_TAG
public static final int UNSPEC_KEY_TAGUnspecified keyTag value- See Also:
-
MIN_KEY_TAG
public static final int MIN_KEY_TAGMinimum keyTag value- See Also:
-
MAX_KEY_TAG
public static final int MAX_KEY_TAGMaximum keyTag value- See Also:
-
UNSPEC_ALG
public static final int UNSPEC_ALGUnspecified alg value- See Also:
-
MIN_ALG
public static final int MIN_ALGMinimum alg value- See Also:
-
MAX_ALG
public static final int MAX_ALGMaximum alg value- See Also:
-
UNSPEC_DIGEST_TYPE
public static final int UNSPEC_DIGEST_TYPEUnspecified digestType value- See Also:
-
MIN_DIGEST_TYPE
public static final int MIN_DIGEST_TYPEMinimum digestType value- See Also:
-
MAX_DIGEST_TYPE
public static final int MAX_DIGEST_TYPEMaximum digestType value- See Also:
-
SHA1_DIGEST_TYPE
public static final int SHA1_DIGEST_TYPEhttp://www.ietf.org/rfc/rfc4034.txt
A.2. DNSSEC Digest Types
A "Digest Type" field in the DS resource record types identifies the cryptographic digest algorithm used by the resource record. The following table lists the currently defined digest algorithm types.
DNSSEC Digest Types VALUE Algorithm STATUS 0 Reserved - 1 SHA-1 MANDATORY 2-255 Unassigned - - See Also:
-
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:
-
-
Constructor Details
-
EPPSecDNSExtDsData
public EPPSecDNSExtDsData()Create a new empty instance of EPPSecDNSExtDsData -
EPPSecDNSExtDsData
Create a new instance (copy) of EPPSecDNSExtDsData- Parameters:
dsData-EPPSecDNSExtDsDatainstance
-
EPPSecDNSExtDsData
public EPPSecDNSExtDsData(int keyTag, int alg, int digestType, String digest, int maxSigLife, EPPSecDNSExtKeyData keyData) Create a new instance of EPPSecDNSExtDsData with the given values. This constructor includes all secDNS:dsData elements.- Parameters:
keyTag- the keyTag value to use for this instance.alg- the algorithm value to use for this instance.digestType- the digestType value to use for this instance.digest- the digest value to use for this instance.maxSigLife- the maximum signature life value to use for this instance.keyData- the keyData value to use for this instance.
-
EPPSecDNSExtDsData
Create a new instance of EPPSecDNSExtDsData with the given values. This constructor includes only the required secDNS:dsData elements.- Parameters:
keyTag- the keyTag value to use for this instance.alg- the algorithm value to use for this instance.digestType- the digestType value to use for this instance.digest- the digest value to use for this instance.
-
EPPSecDNSExtDsData
Create a new instance of EPPSecDNSExtDsData with the given values. This constructor includes the required secDNS:dsData elements plus the optional secDNS:maxSigLife element.- Parameters:
keyTag- the keyTag value to use for this instance.alg- the algorithm value to use for this instance.digestType- the digestType value to use for this instance.digest- the digest value to use for this instance.maxSigLife- the maximum signature life value to use for this instance.
-
EPPSecDNSExtDsData
public EPPSecDNSExtDsData(int keyTag, int alg, int digestType, String digest, EPPSecDNSExtKeyData keyData) Create a new instance of EPPSecDNSExtDsData with the given values. This constructor includes the required secDNS:dsData elements plus the optional secDNS:keyData element.- Parameters:
keyTag- the keyTag value to use for this instance.alg- the algorithm value to use for this instance.digestType- the digestType value to use for this instance.digest- the digest value to use for this instance.keyData- the keyData value to use for this instance.
-
EPPSecDNSExtDsData
public EPPSecDNSExtDsData(int keyTag) Create a new instance of EPPSecDNSExtDsData with the given values. This convenience constructor includes only the secDNS:keyTag element required for the secDNS:update/secDNS:rem extension.- Parameters:
keyTag- anintvalue representing the secDNS:keyTag to use for this instance.
-
EPPSecDNSExtDsData
Create a new instance of EPPSecDNSExtDsData with the given values. This convenience constructor includes only the secDNS:keyTag element required for the secDNS:update/secDNS:rem extension.- Parameters:
keyTag- anIntegerinstance representing the secDNS:keyTag to use for this instance.
-
-
Method Details
-
encode
Append all data from this secDNS:dsData 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 fragment of XML- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
equals
implements a deepEPPSecDNSExtDsDatacompare. -
clone
CloneEPPSecDNSExtDsData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPSecDNSExtDsData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getKeyTag
public int getKeyTag()Get secDNS:keyTag value- Returns:
- an
intvalue representing secDNS:keyTag - See Also:
-
setKeyTag
public void setKeyTag(int keyTag) Set secDNS:keyTag value- Parameters:
keyTag- anintvalue representing secDNS:keyTag
-
setKeyTag
Set secDNS:keyTag value- Parameters:
keyTag- anIntegerinstance representing secDNS:keyTag
-
getAlg
public int getAlg()Get secDNS:alg value- Returns:
- an
intvalue representing secDNS:alg - See Also:
-
setAlg
public void setAlg(int alg) Set secDNS:alg value- Parameters:
alg- anintvalue representing secDNS:alg
-
getDigestType
public int getDigestType()Get secDNS:digestType value- Returns:
- an
intvalue representing secDNS:digestType - See Also:
-
setDigestType
public void setDigestType(int digestType) Set secDNS:digestType value- Parameters:
digestType- anintvalue representing secDNS:digestType
-
getDigest
Get secDNS:digest value- Returns:
- the canonical representation of the hexBinary secDNS:digest
- See Also:
-
setDigest
Set secDNS:digest value This method will remove all whitespace and force UPPER case in an effort to produce the canonical representation for hexBinary as defined by http://www.w3.org/TR/xmlschema-2/#hexBinary- Parameters:
digest- anStringvalue representing the hexBinary secDNS:digest- See Also:
-
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:dsData include optional secDNS:maxSigLife?- Returns:
- true if secDNS:maxSigLife is specified, otherwise false
- See Also:
-
getKeyData
Get secDNS:keyData value- Returns:
- an
EPPSecDNSExtKeyDatarepresenting secDNS:keyData
-
setKeyData
Set secDNS:keyData value- Parameters:
keyData- anEPPSecDNSExtKeyDatavalue representing secDNS:keyData
-
hasKeyData
public boolean hasKeyData()Does secDNS:dsData include optional secDNS:keyData?- Returns:
- true if secDNS:keyData exists (non-null), otherwise false
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-