|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--core.SecretKeyStore
This class represents a SecretKeyStore. It is equivalent to a KeyStore except that instead of storing Public and Secret Keys, it stores Secret Keys.
Field Summary | |
private java.lang.String |
file
File in which the SecretKeyStore is located |
Constructor Summary | |
SecretKeyStore(java.lang.String file)
Creates a new SecretKeyStore |
Method Summary | |
void |
addKey(java.lang.String id,
java.security.Key key)
This method adds a given key to this SecretKeyStore |
java.security.Key |
getKey(java.lang.String id)
This method returns the secret key of a given Agent |
static void |
main(java.lang.String[] args)
This sample method shows how to create a new SecretKeyStore. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String file
Constructor Detail |
public SecretKeyStore(java.lang.String file)
file
- file in which the SecretKeyStore is locatedMethod Detail |
public java.security.Key getKey(java.lang.String id) throws java.io.IOException, java.lang.ClassNotFoundException
id
- id of the Agent whose Secrey Key we are looking for
java.io.IOException
java.lang.ClassNotFoundException
public void addKey(java.lang.String id, java.security.Key key) throws java.io.FileNotFoundException, java.io.IOException
id
- id of the Agent whose key belongs tokey
- key to store
java.io.FileNotFoundException
java.io.IOException
public static void main(java.lang.String[] args)
args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |