EPP 0.4.9

com.neulevel.epp.ext
Class EppSecDnsDsData

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.ext.EppSecDnsDsData

public class EppSecDnsDsData
extends EppEntity

This EppSecDnsDsData class implements DS data specified in the EPP DNS Security extension, defined by IETF Draft: draft-hollenbeck-epp-secdns-04.txt, with the following modifications:

Version:
$Revision: 1.2 $ $Date: 2006/03/01 01:35:38 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppSecDnsDsData()
          Creates an EppSecDnsDsData object
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppSecDnsDsData object.
 int getAlgorithm()
          Gets the algorithm value
 java.lang.String getDigest()
          Gets the digest value
 int getDigestType()
          Gets the digest type
 java.util.Calendar getEndDate()
          Gets the optional end date for using the DS data
 int getKeyTag()
          Gets the key tag value
 java.util.Calendar getStartDate()
          Gets the optional start date for using the DS data
 java.lang.String getValidationInterval()
          Gets the optional validation interval, must be in XML duration format
 void setAlgorithm(int alg)
          Sets the algorithm value
 void setDigest(byte[] digestBytes)
          Sets the digest value, given a byte array
 boolean setDigestString(java.lang.String digestString)
          Sets the digest value, if the digest string is a valid hex binary string
 void setDigestType(int digestType)
          Sets the digest type
 void setEndDate(java.util.Calendar eDate)
          Sets the optional end date for using the DS data
 void setKeyTag(int keyTag)
          Sets the key tag value
 void setStartDate(java.util.Calendar sDate)
          Sets the optional start date for using the DS data
 void setValidationInterval(java.lang.String vInterval)
          Sets the optional validation interval, in the XML duration format
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppSecDnsDsData object into an XML element
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppSecDnsDsData

public EppSecDnsDsData()
Creates an EppSecDnsDsData object

Method Detail

getKeyTag

public int getKeyTag()
Gets the key tag value


setKeyTag

public void setKeyTag(int keyTag)
Sets the key tag value


getAlgorithm

public int getAlgorithm()
Gets the algorithm value


setAlgorithm

public void setAlgorithm(int alg)
Sets the algorithm value


getDigestType

public int getDigestType()
Gets the digest type


setDigestType

public void setDigestType(int digestType)
Sets the digest type


getDigest

public java.lang.String getDigest()
Gets the digest value


setDigest

public void setDigest(byte[] digestBytes)
Sets the digest value, given a byte array


setDigestString

public boolean setDigestString(java.lang.String digestString)
Sets the digest value, if the digest string is a valid hex binary string


getStartDate

public java.util.Calendar getStartDate()
Gets the optional start date for using the DS data


setStartDate

public void setStartDate(java.util.Calendar sDate)
Sets the optional start date for using the DS data


getEndDate

public java.util.Calendar getEndDate()
Gets the optional end date for using the DS data


setEndDate

public void setEndDate(java.util.Calendar eDate)
Sets the optional end date for using the DS data


getValidationInterval

public java.lang.String getValidationInterval()
Gets the optional validation interval, must be in XML duration format


setValidationInterval

public void setValidationInterval(java.lang.String vInterval)
Sets the optional validation interval, in the XML duration format


fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppSecDnsDsData object. The caller of this method must make sure that the root node is of EPP SECDNS dsDataType

Parameters:
root - root node for an EppSecDnsDsData object in XML format
Returns:
an EppSecDnsDsData object, or null if the node is invalid

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppSecDnsDsData object into an XML element

Specified by:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppSecDnsDsData object
Returns:
an Element object

toString

public java.lang.String toString()
Specified by:
toString in class EppEntity

EPP 0.4.9

Copyright © 2001-2006 NeuStar, Inc. All Rights Reserved.