|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.distinct.rpc.PublicKeyDB
Key database for Secure RPC.
| Constructor Summary | |
PublicKeyDB(java.io.File file)
Creates a new secure RPC key database and initializes it from a local file. |
|
PublicKeyDB(java.net.URL url)
Creates a new secure RPC key database and initializes it from an URL. |
|
| Method Summary | |
boolean |
doLogin(boolean free)
Opens the default login dialog on the screen and waits for user's imput. |
boolean |
doLogin(java.lang.String title,
int x,
int y,
boolean free)
Opens a login dialog on the screen and waits for user's imput. |
java.lang.String |
getFirstName()
Method for enumerating the stored name. |
java.lang.String |
getNetname()
Returns the netname entered during the most recent invocation of doLogin(). |
java.lang.String |
getNextName()
Method for enumerating the stored name. |
java.lang.String |
getPassword()
Returns the password entered during the most recent invocation of doLogin(). |
java.lang.String |
getPublicKey(java.lang.String name)
Returns the public key of an authority. |
java.lang.String |
getSecretKey(java.lang.String name)
Returns the encrypted private key of an authority. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PublicKeyDB(java.io.File file)
throws java.io.IOException
file - The file that is used fo initilization.
java.io.IOException - Thrown if the file cannot be read.
public PublicKeyDB(java.net.URL url)
throws java.io.IOException
url - The URL that is used fo initilization.
java.io.IOException - Thrown if the URL is unreachable.| Method Detail |
public java.lang.String getPublicKey(java.lang.String name)
throws RPCError
name - The name of the authority.
RPCError - Thrown if the key is not found in the database.
public java.lang.String getSecretKey(java.lang.String name)
throws RPCError
name - The name of the authority.
RPCError - Thrown if the key is not found in the database.public java.lang.String getFirstName()
public java.lang.String getNextName()
public boolean doLogin(boolean free)
free - If true, the user has to enter the netname as free text,
If false, the user may select the netname from a choice of all known names.
public boolean doLogin(java.lang.String title,
int x,
int y,
boolean free)
title - The title of the dialog.x - The x coordinate of the dialog.y - The y coordinate of the dialog.free - If true, the user has to enter the netname as free text,
If false, the user may select the netname from a choice of all known names.
public java.lang.String getNetname()
public java.lang.String getPassword()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||