|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.sharp.plugins.keys.SimpleKeyManager
public class SimpleKeyManager
| Field Summary | |
|---|---|
protected ClientDatabase |
db
|
protected LoggingTool |
logger
|
| Constructor Summary | |
|---|---|
SimpleKeyManager()
|
|
SimpleKeyManager(ClientDatabase db)
|
|
| Method Summary | |
|---|---|
void |
addClient(Client c)
|
void |
addPublicKey(AuthToken token,
java.security.PublicKey key)
|
Client |
getClient(AuthToken token)
|
Client[] |
getClients()
|
java.security.PublicKey |
getPublicKey(AuthToken token)
|
void |
initialize()
Initializes the object. |
void |
reset(java.util.Properties p)
De-serializes the object from the given properties list. |
void |
revisit(IActor actor,
java.util.Properties p)
Recovers state of the component using a previously saved properties list and a references to the actor this component belongs to. |
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 |
setDatabase(ClientDatabase db)
|
void |
setLogger(LoggingTool logger)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LoggingTool logger
protected ClientDatabase db
| Constructor Detail |
|---|
public SimpleKeyManager()
public SimpleKeyManager(ClientDatabase db)
| Method Detail |
|---|
public void initialize()
throws java.lang.Exception
IInitialize
initialize in interface IInitializejava.lang.Exception
public java.util.Properties save()
throws java.lang.Exception
ISerialize
save in interface ISerializejava.lang.Exception
public void save(java.util.Properties p)
throws java.lang.Exception
ISerialize
save in interface ISerializep - properties list to serialize the object into
java.lang.Exception
public void reset(java.util.Properties p)
throws java.lang.Exception
ISerialize
reset in interface ISerializep - properties list containing the serialized version of
the object
java.lang.Exception
public void revisit(IActor actor,
java.util.Properties p)
throws java.lang.Exception
IRecover
revisit in interface IRecoveractor - actor object the component belongs top - properties list containing configuration data about the
component
java.lang.Exceptionpublic Client getClient(AuthToken token)
getClient in interface KeyManagerpublic Client[] getClients()
getClients in interface KeyManagerpublic java.security.PublicKey getPublicKey(AuthToken token)
getPublicKey in interface KeyManager
public void addClient(Client c)
throws java.lang.Exception
addClient in interface KeyManagerjava.lang.Exception
public void addPublicKey(AuthToken token,
java.security.PublicKey key)
addPublicKey in interface KeyManagerpublic void setDatabase(ClientDatabase db)
setDatabase in interface KeyManagerpublic void setLogger(LoggingTool logger)
setLogger in interface KeyManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||