public class EPPSecDNSExtKeyData extends java.lang.Object implements EPPCodecComponent
Title: EPP 1.0 secDNS
Description: secDNS Extension to the EPP SDK
Copyright: Copyright (c) 2006
Company: VeriSign
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PROTOCOL
The default protocol vale.
|
static int |
FLAGS_ZONE_KEY
Bit 7 of the Flags field is the Zone Key flag.
|
static int |
FLAGS_ZONE_KEY_SEP
Bit 15 of the Flags field is the Secure Entry Point flag.
|
static int |
MAX_ALG
Maximum alg value
|
static int |
MAX_FLAGS
Maximum flags value
|
static int |
MAX_PROTOCOL
Maximum protocol value
|
static int |
MIN_ALG
Minimum alg value
|
static int |
MIN_FLAGS
Minimum flags value
|
static int |
MIN_PROTOCOL
Minimum protocol value
|
static int |
UNSPEC_ALG
Unspecified alg value
|
static int |
UNSPEC_FLAGS
Unspecified flags value
|
static int |
UNSPEC_PROTOCOL
Unspecified protocol value
|
| Constructor and Description |
|---|
EPPSecDNSExtKeyData()
Create a new instance of EPPSecDNSExtKeyData
|
EPPSecDNSExtKeyData(EPPSecDNSExtKeyData keyData)
Create a new instance (copy) of EPPSecDNSExtKeyData
|
EPPSecDNSExtKeyData(int flags,
int protocol,
int alg,
java.lang.String pubKey)
Create a new instance of EPPSecDNSExtKeyData with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPSecDNSExtKeyData. |
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:keyData to the given DOM Document
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPSecDNSExtKeyData compare. |
int |
getAlg()
Get secDNS:alg value
|
int |
getFlags()
Get secDNS:flags value
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
int |
getProtocol()
Get secDNS:protocol value
|
java.lang.String |
getPubKey()
Get secDNS:pubKey value
|
void |
setAlg(int alg)
Set secDNS:alg value
|
void |
setFlags(int flags)
Set secDNS:flags value
|
void |
setProtocol(int protocol)
Set secDNS:protocol value
|
void |
setPubKey(java.lang.String pubKey)
Set secDNS:pubKey value
This method will remove all whitespace
in an effort to produce the canonical representation for base64Binary
as defined by http://www.w3.org/TR/xmlschema-2/#base64Binary
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final int DEFAULT_PROTOCOL
public static final int FLAGS_ZONE_KEY
public static final int FLAGS_ZONE_KEY_SEP
public static final int UNSPEC_FLAGS
public static final int MIN_FLAGS
public static final int MAX_FLAGS
public static final int UNSPEC_PROTOCOL
public static final int MIN_PROTOCOL
public static final int MAX_PROTOCOL
public static final int UNSPEC_ALG
public static final int MIN_ALG
public static final int MAX_ALG
public EPPSecDNSExtKeyData()
public EPPSecDNSExtKeyData(EPPSecDNSExtKeyData keyData)
keyData - EPPSecDNSExtKeyData instancepublic EPPSecDNSExtKeyData(int flags,
int protocol,
int alg,
java.lang.String pubKey)
flags - the flags value to use for this instance.protocol - the protocol value to use for this instance.alg - the algorithm value to use for this instance.pubKey - the public key value to use for this instance.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - The DOM Document to append data toElementEPPEncodeException - 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 EPPCodecComponentaElement - The root element of the fragment of XMLEPPDecodeException - Thrown if any errors occur during decoding.public boolean equals(java.lang.Object aObject)
EPPSecDNSExtKeyData compare.equals in class java.lang.ObjectaObject - EPPSecDNSExtKeyData instance to compare withpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPSecDNSExtKeyData.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPSecDNSExtKeyDatajava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic int getFlags()
int value representing secDNS:flagsUNSPEC_FLAGSpublic void setFlags(int flags)
flags - an int value representing secDNS:flagsFLAGS_ZONE_KEY_SEP,
FLAGS_ZONE_KEYpublic int getProtocol()
int value representing secDNS:protocolDEFAULT_PROTOCOL,
UNSPEC_PROTOCOLpublic void setProtocol(int protocol)
protocol - an int value representing secDNS:protocolpublic int getAlg()
int value representing secDNS:algUNSPEC_ALGpublic void setAlg(int alg)
alg - an int value representing secDNS:algpublic java.lang.String getPubKey()
EPPSecDNSExtKeyData.setPubKey(String pubKey)public void setPubKey(java.lang.String pubKey)
pubKey - an String value representing the base64Binary secDNS:pubKeyEPPUtil.removeWhitespace(String inString)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.ObjectString if successful;
ERROR otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.