|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbase.jdbs.cryptography.KeyRing<KeyPair>
base.jdbs.cryptography.asymmetric.AsymmetricKeyRing
public class AsymmetricKeyRing
| Field Summary | |
|---|---|
static java.lang.String |
CERTIFICATE_ENTRY
|
static java.lang.String |
KEY_ENTRY
|
| Constructor Summary | |
|---|---|
AsymmetricKeyRing(User owner)
The default constructor. |
|
| Method Summary | |
|---|---|
void |
addKeyPair(KeyPair keyPair)
This method adds a keypair to the collection. |
KeyPair[] |
getAllKeyPair()
This method returns all the keypairs contained in the collection. |
KeyPair |
getKeyPair(java.lang.Integer keyPairId)
This method retrieves a keypair givind its identifier. |
User |
getOwner()
|
protected java.lang.Integer |
nextKeyPairId()
This method computes a new Id for a KeyPair. |
void |
removeAllKeyPair()
This method removes all the keypairs contained in the collection. |
void |
removeKeyPair(java.lang.Integer keyPairId)
This method removes a keypair from the collection. |
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. |
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 base.jdbs.cryptography.KeyRing |
|---|
add, get, getAll, nextElementId, remove, removeAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY_ENTRY
public static final java.lang.String CERTIFICATE_ENTRY
| Constructor Detail |
|---|
public AsymmetricKeyRing(User owner)
| Method Detail |
|---|
public User getOwner()
public void addKeyPair(KeyPair keyPair)
keyPair - The keypair to be added.public void removeKeyPair(java.lang.Integer keyPairId)
keyPairId - The keypair identifier associated to the keypair that must be
removed from the collection.public void removeAllKeyPair()
public KeyPair getKeyPair(java.lang.Integer keyPairId)
keyPairId - The keypair identifier associated to the keypair that must be
retrieved.
public KeyPair[] getAllKeyPair()
protected java.lang.Integer nextKeyPairId()
public void store(java.io.File location,
java.lang.String password)
KeyRing
store in class KeyRing<KeyPair>location - The location where the key ring must be stored.password - The password associated to the file.
public java.security.KeyStore retrieve(java.io.File location,
java.lang.String password)
KeyRing
retrieve in class KeyRing<KeyPair>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 | |||||||||