orca.sharp
Class Client

java.lang.Object
  extended by orca.sharp.Client
All Implemented Interfaces:
ISerialize

public class Client
extends java.lang.Object
implements ISerialize


Field Summary
protected  java.security.PublicKey key
           
protected  java.lang.String keyString
           
protected  java.lang.String name
           
static java.lang.String PropertyName
           
static java.lang.String PropertyPublicKey
           
 
Constructor Summary
Client()
           
 
Method Summary
 java.lang.String getName()
           
 java.security.PublicKey getPublicKey()
           
 java.lang.String getPublicKeyString()
           
 void reset(java.util.Properties p)
          De-serializes the object from the given properties list.
 void revisit(IActorIdentity actor, java.util.Properties p)
           
 java.util.Properties save()
          Serializes the object into a properties list.
 void save(java.util.Properties p)
          Serializes the object into the given properties list.
 void setName(java.lang.String name)
           
 void setPublicKey(java.security.PublicKey key)
           
 void setPublicKeyString(java.lang.String keyString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PropertyName

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

PropertyPublicKey

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

name

protected java.lang.String name

key

protected java.security.PublicKey key

keyString

protected java.lang.String keyString
Constructor Detail

Client

public Client()
Method Detail

save

public java.util.Properties save()
                          throws java.lang.Exception
Description copied from interface: ISerialize
Serializes the object into a properties list.

Specified by:
save in interface ISerialize
Returns:
properties list representing this object
Throws:
java.lang.Exception

save

public void save(java.util.Properties p)
          throws java.lang.Exception
Description copied from interface: ISerialize
Serializes the object into the given properties list.

Specified by:
save in interface ISerialize
Parameters:
p - properties list to serialize the object into
Throws:
java.lang.Exception

reset

public void reset(java.util.Properties p)
           throws java.lang.Exception
Description copied from interface: ISerialize
De-serializes the object from the given properties list.

Specified by:
reset in interface ISerialize
Parameters:
p - properties list containing the serialized version of the object
Throws:
java.lang.Exception

revisit

public void revisit(IActorIdentity actor,
                    java.util.Properties p)
             throws java.lang.Exception
Throws:
java.lang.Exception

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

getPublicKey

public java.security.PublicKey getPublicKey()

setPublicKey

public void setPublicKey(java.security.PublicKey key)

setPublicKeyString

public void setPublicKeyString(java.lang.String keyString)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getPublicKeyString

public java.lang.String getPublicKeyString()


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.