|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object base.jdbs.cryptography.KeyRing<K>
public abstract class KeyRing<K>
Constructor Summary | |
---|---|
KeyRing()
|
Method Summary | |
---|---|
protected void |
add(java.lang.Integer id,
K object)
This method adds to the KeyRing the target object. |
protected K |
get(java.lang.Integer id)
This method retrieves a stored element by id. |
protected java.util.Collection<K> |
getAll()
This method returns a collection of all stored elements. |
protected java.lang.Integer |
nextElementId()
This method computes a new Id for a KeyPair. |
protected void |
remove(java.lang.Integer id)
This method removes a stored element from the KeyRing. |
protected void |
removeAll()
This method removes all the stored elements from the KeyRing. |
abstract java.security.KeyStore |
retrieve(java.io.File location,
java.lang.String password)
This method retrieves the content of a stored key ring from a file system location. |
abstract void |
store(java.io.File location,
java.lang.String password)
This method saves the content of the key ring in a file system location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyRing()
Method Detail |
---|
protected java.lang.Integer nextElementId()
protected void add(java.lang.Integer id, K object)
id
- The id associated to the object.object
- The object to be added.protected void remove(java.lang.Integer id)
id
- The id associated to the element to remove.protected void removeAll()
protected K get(java.lang.Integer id)
id
- The id associated to the element to retrieve.
protected java.util.Collection<K> getAll()
public abstract void store(java.io.File location, java.lang.String password)
location
- The location where the key ring must be stored.password
- The password associated to the file.public abstract java.security.KeyStore retrieve(java.io.File location, java.lang.String password)
location
- The location from wich the content of the key ring must be retrieved.password
- The password associated to the file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |