EPP 0.2.4

com.neulevel.epp.core
Class EppAuthInfo

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.neulevel.epp.core.EppAuthInfo

public class EppAuthInfo
extends EppEntity

This EppAuthInfo class implements EPP AuthInfo entity.

Version:
$Revision: 1.1 $ $Date: 2001/11/05 20:20:36 $
Author:
Ning Zhang ning.zhang@neustar.com

Field Summary
static java.lang.String TYPE_PW
          Authorization type "pw" for password
 
Constructor Summary
EppAuthInfo(java.lang.String type, java.lang.String value)
          Creates an EppAuthInfo object
EppAuthInfo(java.lang.String type, java.lang.String value, java.lang.String roid)
          Creates an EppAuthInfo object with a ROID.
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppAuthInfo object.
 java.lang.String getRoid()
          Gets the ROID of the authorization information
 java.lang.String getType()
          Gets the type of the authorization information
 java.lang.String getValue()
          Gets the value associated with the authorization information
 void setRoid(java.lang.String roid)
          Sets the ROID of the authorization information
 void setType(java.lang.String type)
          Sets the type of the authorization information
 void setValue(java.lang.String value)
          Gets the value associated with the authorization information
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppAuthInfo 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
 

Field Detail

TYPE_PW

public static final java.lang.String TYPE_PW
Authorization type "pw" for password
Constructor Detail

EppAuthInfo

public EppAuthInfo(java.lang.String type,
                   java.lang.String value)
Creates an EppAuthInfo object

EppAuthInfo

public EppAuthInfo(java.lang.String type,
                   java.lang.String value,
                   java.lang.String roid)
Creates an EppAuthInfo object with a ROID.
Method Detail

getValue

public java.lang.String getValue()
Gets the value associated with the authorization information

setValue

public void setValue(java.lang.String value)
Gets the value associated with the authorization information

getRoid

public java.lang.String getRoid()
Gets the ROID of the authorization information

setRoid

public void setRoid(java.lang.String roid)
Sets the ROID of the authorization information

getType

public java.lang.String getType()
Gets the type of the authorization information

setType

public void setType(java.lang.String type)
Sets the type of the authorization information

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppAuthInfo object into an XML element
Overrides:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppAuthInfo object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppAuthInfo object. The caller of this method must make sure that the root node is of the EPP AuthInfo type.
Parameters:
root - root node for an EppAuthInfo object in XML format
Returns:
an EppAuthInfo object, or null if the node is invalid

toString

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

EPP 0.2.4

Copyright © 2001 NeuStar, Inc. All Rights Reserved.