org.psepr.jClient
Class PsEPRServiceIdentity

java.lang.Object
  extended by org.psepr.jClient.PsEPRServiceIdentity

public class PsEPRServiceIdentity
extends java.lang.Object

Class to hold the identity of the service. At the moment, this is pretty simple since the identity of a service is just it's name and password. But, someday, it will be more complex and this class will have to handle multiple types of identity storage and discovery.

Author:
Robert Adams (Robert.Adams@intel.com)

Constructor Summary
PsEPRServiceIdentity()
          Create an empty identity.
PsEPRServiceIdentity(java.lang.String servName, java.lang.String servPassword)
          Create a service identity type with the given name and password.
 
Method Summary
 java.lang.String getServiceName()
           
 java.lang.String getServicePassword()
           
 boolean isSpecified()
          Return true of this contains a full specified identity.
 void setSimpleIdentity(java.lang.String servName, java.lang.String servPassword)
          Set the parameters for the simple service identity.
 java.lang.String toXML()
           
 void toXML(java.io.Writer wtr)
           
 void useDefaultIdentity()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PsEPRServiceIdentity

public PsEPRServiceIdentity()
Create an empty identity.


PsEPRServiceIdentity

public PsEPRServiceIdentity(java.lang.String servName,
                            java.lang.String servPassword)
Create a service identity type with the given name and password.

Parameters:
servName -
servPassword -
Method Detail

useDefaultIdentity

public void useDefaultIdentity()

isSpecified

public boolean isSpecified()
Return true of this contains a full specified identity.

Returns:
true if fully specified identity. False otherwise

getServiceName

public java.lang.String getServiceName()

getServicePassword

public java.lang.String getServicePassword()

setSimpleIdentity

public void setSimpleIdentity(java.lang.String servName,
                              java.lang.String servPassword)
Set the parameters for the simple service identity.

Parameters:
servName -
servPassword -

toXML

public java.lang.String toXML()

toXML

public void toXML(java.io.Writer wtr)