Class EPPSecDNSExtKeyData
java.lang.Object
com.verisign.epp.codec.secdnsext.v10.EPPSecDNSExtKeyData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The EPPSecDNSExtKeyData is the EPPCodecComponent that knows how to encode and
decode secDNS keyData 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 intThe default protocol vale.static final intBit 7 of the Flags field is the Zone Key flag.static final intBit 15 of the Flags field is the Secure Entry Point flag.static final intMaximum alg valuestatic final intMaximum flags valuestatic final intMaximum protocol valuestatic final intMinimum alg valuestatic final intMinimum flags valuestatic final intMinimum protocol valuestatic final intUnspecified alg valuestatic final intUnspecified flags valuestatic final intUnspecified protocol value -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of EPPSecDNSExtKeyDataEPPSecDNSExtKeyData(int flags, int protocol, int alg, String pubKey) Create a new instance of EPPSecDNSExtKeyData with the given values.EPPSecDNSExtKeyData(EPPSecDNSExtKeyData keyData) Create a new instance (copy) of EPPSecDNSExtKeyData -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPSecDNSExtKeyData.voidPopulate the data of this instance with the data stored in the given Element of the DOM treeAppend all data from this secDNS:keyData to the given DOM Documentbooleanimplements a deepEPPSecDNSExtKeyDatacompare.intgetAlg()Get secDNS:alg valueintgetFlags()Get secDNS:flags valueReturns the XML namespace associated with theEPPCodecComponent.intGet secDNS:protocol valueGet secDNS:pubKey valuevoidsetAlg(int alg) Set secDNS:alg valuevoidsetFlags(int flags) Set secDNS:flags valuevoidsetProtocol(int protocol) Set secDNS:protocol valuevoidSet 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/#base64BinarytoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
DEFAULT_PROTOCOL
public static final int DEFAULT_PROTOCOLThe default protocol vale. http://www.ietf.org/rfc/rfc4034.txt 2.1.2. The Protocol Field The Protocol Field MUST have value 3, and the DNSKEY RR MUST be treated as invalid during signature verification if it is found to be some value other than 3.- See Also:
-
FLAGS_ZONE_KEY
public static final int FLAGS_ZONE_KEYBit 7 of the Flags field is the Zone Key flag. If bit 7 has value 1, then the DNSKEY record holds a DNS zone key.- See Also:
-
FLAGS_ZONE_KEY_SEP
public static final int FLAGS_ZONE_KEY_SEPBit 15 of the Flags field is the Secure Entry Point flag. If bit 15 has value 1, then the DNSKEY record holds a key intended for use as a secure entry point (SEP).- See Also:
-
UNSPEC_FLAGS
public static final int UNSPEC_FLAGSUnspecified flags value- See Also:
-
MIN_FLAGS
public static final int MIN_FLAGSMinimum flags value- See Also:
-
MAX_FLAGS
public static final int MAX_FLAGSMaximum flags value- See Also:
-
UNSPEC_PROTOCOL
public static final int UNSPEC_PROTOCOLUnspecified protocol value- See Also:
-
MIN_PROTOCOL
public static final int MIN_PROTOCOLMinimum protocol value- See Also:
-
MAX_PROTOCOL
public static final int MAX_PROTOCOLMaximum protocol 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:
-
-
Constructor Details
-
EPPSecDNSExtKeyData
public EPPSecDNSExtKeyData()Create a new instance of EPPSecDNSExtKeyData -
EPPSecDNSExtKeyData
Create a new instance (copy) of EPPSecDNSExtKeyData- Parameters:
keyData-EPPSecDNSExtKeyDatainstance
-
EPPSecDNSExtKeyData
Create a new instance of EPPSecDNSExtKeyData with the given values.- Parameters:
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.
-
-
Method Details
-
encode
Append all data from this secDNS:keyData 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 deepEPPSecDNSExtKeyDatacompare. -
clone
CloneEPPSecDNSExtKeyData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPSecDNSExtKeyData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getFlags
public int getFlags()Get secDNS:flags value- Returns:
- an
intvalue representing secDNS:flags - See Also:
-
setFlags
public void setFlags(int flags) Set secDNS:flags value- Parameters:
flags- anintvalue representing secDNS:flags- See Also:
-
getProtocol
public int getProtocol()Get secDNS:protocol value- Returns:
- an
intvalue representing secDNS:protocol - See Also:
-
setProtocol
public void setProtocol(int protocol) Set secDNS:protocol value- Parameters:
protocol- anintvalue representing secDNS:protocol
-
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
-
getPubKey
Get secDNS:pubKey value- Returns:
- the canonical representation of the base64Binary secDNS:pubKey
- See Also:
-
setPubKey
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- Parameters:
pubKey- anStringvalue representing the base64Binary secDNS:pubKey- See Also:
-
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.
-