|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.secdnsext.v10.EPPSecDNSExtDsData
public class EPPSecDNSExtDsData
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
Field Summary | |
---|---|
static java.lang.String |
ELM_MAX_SIG_LIFE
The element tag name for maxSigLife |
static int |
MAX_ALG
Maximum alg value |
static int |
MAX_DIGEST_TYPE
Maximum digestType value |
static int |
MAX_KEY_TAG
Maximum keyTag value |
static int |
MAX_MAX_SIG_LIFE
Maximum maxSigLife value |
static int |
MIN_ALG
Minimum alg value |
static int |
MIN_DIGEST_TYPE
Minimum digestType value |
static int |
MIN_KEY_TAG
Minimum keyTag value |
static int |
MIN_MAX_SIG_LIFE
Minimum maxSigLife value |
static int |
SHA1_DIGEST_TYPE
http://www.ietf.org/rfc/rfc4034.txt A.2. |
static int |
UNSPEC_ALG
Unspecified alg value |
static int |
UNSPEC_DIGEST_TYPE
Unspecified digestType value |
static int |
UNSPEC_KEY_TAG
Unspecified keyTag value |
static int |
UNSPEC_MAX_SIG_LIFE
Unspecified maxSigLife value |
Constructor Summary | |
---|---|
EPPSecDNSExtDsData()
Create a new empty instance of EPPSecDNSExtDsData |
|
EPPSecDNSExtDsData(EPPSecDNSExtDsData dsData)
Create a new instance (copy) of EPPSecDNSExtDsData |
|
EPPSecDNSExtDsData(int keyTag)
Create a new instance of EPPSecDNSExtDsData with the given values. |
|
EPPSecDNSExtDsData(java.lang.Integer keyTag)
Create a new instance of EPPSecDNSExtDsData with the given values. |
|
EPPSecDNSExtDsData(int keyTag,
int alg,
int digestType,
java.lang.String digest)
Create a new instance of EPPSecDNSExtDsData with the given values. |
|
EPPSecDNSExtDsData(int keyTag,
int alg,
int digestType,
java.lang.String digest,
EPPSecDNSExtKeyData keyData)
Create a new instance of EPPSecDNSExtDsData with the given values. |
|
EPPSecDNSExtDsData(int keyTag,
int alg,
int digestType,
java.lang.String digest,
int maxSigLife)
Create a new instance of EPPSecDNSExtDsData with the given values. |
|
EPPSecDNSExtDsData(int keyTag,
int alg,
int digestType,
java.lang.String digest,
int maxSigLife,
EPPSecDNSExtKeyData keyData)
Create a new instance of EPPSecDNSExtDsData with the given values. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone EPPSecDNSExtDsData . |
void |
decode(org.w3c.dom.Element aElement)
Populate the data of this instance with the data stored in the given Element of the DOM tree |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Append all data from this secDNS:dsData to the given DOM Document |
boolean |
equals(java.lang.Object aObject)
implements a deep EPPSecDNSExtDsData compare. |
int |
getAlg()
Get secDNS:alg value |
java.lang.String |
getDigest()
Get secDNS:digest value |
int |
getDigestType()
Get secDNS:digestType value |
EPPSecDNSExtKeyData |
getKeyData()
Get secDNS:keyData value |
int |
getKeyTag()
Get secDNS:keyTag value |
int |
getMaxSigLife()
Get secDNS:maxSigLife value |
boolean |
hasKeyData()
Does secDNS:dsData include optional secDNS:keyData? |
boolean |
hasMaxSigLife()
Does secDNS:dsData include optional secDNS:maxSigLife? |
void |
setAlg(int alg)
Set secDNS:alg value |
void |
setDigest(java.lang.String digest)
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 |
void |
setDigestType(int digestType)
Set secDNS:digestType value |
void |
setKeyData(EPPSecDNSExtKeyData keyData)
Set secDNS:keyData value |
void |
setKeyTag(int keyTag)
Set secDNS:keyTag value |
void |
setKeyTag(java.lang.Integer keyTag)
Set secDNS:keyTag value |
void |
setMaxSigLife(int maxSigLife)
Set secDNS:maxSigLife value |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELM_MAX_SIG_LIFE
public static final int UNSPEC_KEY_TAG
public static final int MIN_KEY_TAG
public static final int MAX_KEY_TAG
public static final int UNSPEC_ALG
public static final int MIN_ALG
public static final int MAX_ALG
public static final int UNSPEC_DIGEST_TYPE
public static final int MIN_DIGEST_TYPE
public static final int MAX_DIGEST_TYPE
public static final int SHA1_DIGEST_TYPE
VALUE | Algorithm | STATUS |
0 | Reserved | - |
1 | SHA-1 | MANDATORY |
2-255 | Unassigned | - |
public static final int UNSPEC_MAX_SIG_LIFE
public static final int MIN_MAX_SIG_LIFE
public static final int MAX_MAX_SIG_LIFE
Constructor Detail |
---|
public EPPSecDNSExtDsData()
public EPPSecDNSExtDsData(EPPSecDNSExtDsData dsData)
dsData
- EPPSecDNSExtDsData
instancepublic EPPSecDNSExtDsData(int keyTag, int alg, int digestType, java.lang.String digest, int maxSigLife, EPPSecDNSExtKeyData keyData)
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.public EPPSecDNSExtDsData(int keyTag, int alg, int digestType, java.lang.String digest)
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.public EPPSecDNSExtDsData(int keyTag, int alg, int digestType, java.lang.String digest, int maxSigLife)
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.public EPPSecDNSExtDsData(int keyTag, int alg, int digestType, java.lang.String digest, EPPSecDNSExtKeyData keyData)
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.public EPPSecDNSExtDsData(int keyTag)
keyTag
- an int
value representing the secDNS:keyTag to use for this instance.public EPPSecDNSExtDsData(java.lang.Integer keyTag)
keyTag
- an Integer
instance representing the secDNS:keyTag to use for this instance.Method Detail |
---|
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- The DOM Document to append data to
Element
EPPEncodeException
- Thrown when errors occur during the
encode attempt or if the instance is invalid.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
decode
in interface EPPCodecComponent
aElement
- The root element of the fragment of XML
EPPDecodeException
- Thrown if any errors occur during decoding.public boolean equals(java.lang.Object aObject)
EPPSecDNSExtDsData
compare.
equals
in class java.lang.Object
aObject
- EPPSecDNSExtDsData
instance to compare with
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPSecDNSExtDsData
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPSecDNSExtDsData
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic int getKeyTag()
int
value representing secDNS:keyTagUNSPEC_KEY_TAG
public void setKeyTag(int keyTag)
keyTag
- an int
value representing secDNS:keyTagpublic void setKeyTag(java.lang.Integer keyTag)
keyTag
- an Integer
instance representing secDNS:keyTagpublic int getAlg()
int
value representing secDNS:algUNSPEC_ALG
public void setAlg(int alg)
alg
- an int
value representing secDNS:algpublic int getDigestType()
int
value representing secDNS:digestTypeUNSPEC_DIGEST_TYPE
public void setDigestType(int digestType)
digestType
- an int
value representing secDNS:digestTypepublic java.lang.String getDigest()
EPPSecDNSExtDsData.setDigest(String digest)
public void setDigest(java.lang.String digest)
digest
- an String
value representing the hexBinary secDNS:digestEPPUtil.removeWhitespace(String inString)
public int getMaxSigLife()
int
value representing secDNS:maxSigLifehasMaxSigLife()
,
UNSPEC_MAX_SIG_LIFE
public void setMaxSigLife(int maxSigLife)
maxSigLife
- an int
value representing secDNS:maxSigLifepublic boolean hasMaxSigLife()
UNSPEC_MAX_SIG_LIFE
public EPPSecDNSExtKeyData getKeyData()
EPPSecDNSExtKeyData
representing secDNS:keyDatapublic void setKeyData(EPPSecDNSExtKeyData keyData)
keyData
- an EPPSecDNSExtKeyData
value representing secDNS:keyDatapublic boolean hasKeyData()
public java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.
toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |