com.waveset.object
Class PrivateKey

java.lang.Object
  extended bycom.waveset.object.PrivateKey

public class PrivateKey
extends java.lang.Object

A class that maintains user login information for a named resource. A named resource can be any string which either uniquely identifies a web application or a URL regexp

A list of these may be found on each WSUser object. We also store these on UserInfo objects for cases where end-users need access to their resource account information.


Field Summary
static java.lang.String ATT_ACCOUNTID
           
static java.lang.String ATT_APPLICATION
           
static java.lang.String ATT_ASCII
           
static java.lang.String ATT_PASSWORD
           
static java.lang.String ATT_URL
           
static java.lang.String code_id
           
static java.lang.String ELEMENT
           
 
Constructor Summary
PrivateKey()
          Create an empty resource info object.
PrivateKey(org.w3c.dom.Element e)
          Create a resource info object and initialize it by parsing its DOM representation.
 
Method Summary
 java.lang.String getAccountId()
          Get the accountId
 java.lang.String getApplication()
          Get the application name.
 EncryptedData getPassword()
          Get the password.
 java.lang.String getUrl()
          Get the resource name
 void parseXml(org.w3c.dom.Element e)
          Parse the DOM representation of an info object, and set the corresponding fields.
static PrivateKey[] parseXmlArray(org.w3c.dom.Element e)
          Parse the DOM representatino for a list of PrivateKey objects, and return them in an array.
 void setAccountId(java.lang.String id)
          Set the account id.
 void setApplication(java.lang.String name)
          Set the application name.
 void setPassword(EncryptedData p)
          Set the password.
 void setPassword(java.lang.String p)
          Set the password.
 void setUrl(java.lang.String url)
          Set the account id.
 void toXml(java.lang.StringBuffer b, int indent)
          Serialize the resource info object to an XML string buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

ELEMENT

public static final java.lang.String ELEMENT
See Also:
Constant Field Values

ATT_URL

public static final java.lang.String ATT_URL
See Also:
Constant Field Values

ATT_APPLICATION

public static final java.lang.String ATT_APPLICATION
See Also:
Constant Field Values

ATT_ACCOUNTID

public static final java.lang.String ATT_ACCOUNTID
See Also:
Constant Field Values

ATT_PASSWORD

public static final java.lang.String ATT_PASSWORD
See Also:
Constant Field Values

ATT_ASCII

public static final java.lang.String ATT_ASCII
See Also:
Constant Field Values
Constructor Detail

PrivateKey

public PrivateKey()
Create an empty resource info object.


PrivateKey

public PrivateKey(org.w3c.dom.Element e)
           throws WavesetException
Create a resource info object and initialize it by parsing its DOM representation.

Method Detail

getApplication

public java.lang.String getApplication()
Get the application name.


setApplication

public void setApplication(java.lang.String name)
Set the application name.


getUrl

public java.lang.String getUrl()
Get the resource name


setUrl

public void setUrl(java.lang.String url)
Set the account id.


getAccountId

public java.lang.String getAccountId()
Get the accountId


setAccountId

public void setAccountId(java.lang.String id)
Set the account id.


getPassword

public EncryptedData getPassword()
Get the password.


setPassword

public void setPassword(java.lang.String p)
Set the password.


setPassword

public void setPassword(EncryptedData p)
Set the password.


toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)
Serialize the resource info object to an XML string buffer.


parseXml

public void parseXml(org.w3c.dom.Element e)
              throws WavesetException
Parse the DOM representation of an info object, and set the corresponding fields.

Throws:
WavesetException

parseXmlArray

public static PrivateKey[] parseXmlArray(org.w3c.dom.Element e)
                                  throws WavesetException
Parse the DOM representatino for a list of PrivateKey objects, and return them in an array. The given element is assumed to be a wrapper element around the list.

Throws:
WavesetException