EPP 0.2.5

com.neulevel.epp.core.command
Class EppCreds

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

public class EppCreds
extends EppEntity

This EppCreds class implements EPP credsType entity.

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

Constructor Summary
EppCreds(java.lang.String clientId, java.lang.String password)
          Creates an EppCreds object, given the registrar client id and the password
EppCreds(java.lang.String clientId, java.lang.String password, java.lang.String newPassword)
          Creates an EppCreds object, given the registrar client id, the current password, and the new password
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppCreds object.
 java.lang.String getClientId()
          Gets registrar client id
 java.lang.String getNewPassword()
          Gets registrar client's new password
 EppCredsOptions getOptions()
          Gets credentials options
 java.lang.String getPassword()
          Gets registrar client's password
 void setClientId(java.lang.String clientId)
          Sets registrar client id
 void setNewPassword(java.lang.String newPassword)
          Sets registrar client's new password
 void setOptions(EppCredsOptions options)
          Sets credentials options
 void setPassword(java.lang.String password)
          Sets registrar client's password
 java.lang.String toString()
          Converts the EppCreds object into plain XML text string by using the default root tag name
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppCreds 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

EppCreds

public EppCreds(java.lang.String clientId,
                java.lang.String password)
Creates an EppCreds object, given the registrar client id and the password
Parameters:
clientId - client/registrar id
password - the password for the client/registrar

EppCreds

public EppCreds(java.lang.String clientId,
                java.lang.String password,
                java.lang.String newPassword)
Creates an EppCreds object, given the registrar client id, the current password, and the new password
Parameters:
clientId - registrar client id
password - the current password for the registrar client
newPassword - the new password replacing the current password
Method Detail

getClientId

public java.lang.String getClientId()
Gets registrar client id

setClientId

public void setClientId(java.lang.String clientId)
Sets registrar client id

getPassword

public java.lang.String getPassword()
Gets registrar client's password

setPassword

public void setPassword(java.lang.String password)
Sets registrar client's password

getNewPassword

public java.lang.String getNewPassword()
Gets registrar client's new password

setNewPassword

public void setNewPassword(java.lang.String newPassword)
Sets registrar client's new password

getOptions

public EppCredsOptions getOptions()
Gets credentials options

setOptions

public void setOptions(EppCredsOptions options)
Sets credentials options

toXML

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

fromXML

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

toString

public java.lang.String toString()
Converts the EppCreds object into plain XML text string by using the default root tag name
Overrides:
toString in class EppEntity
Returns:
a text string representing the EppCreds object in XML format

EPP 0.2.5

Copyright © 2001-2002 NeuLevel, Inc. All Rights Reserved.