|
jPOS 1.6.1 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SecureKeyStore
Represents a collection of Secure Keys and typically stores them in some persistent storage. SecureKeyStore isolates from particular DB implementations. A Secure Key Store need not implement any security itself, it just holds keys that are inherently secure (like SecureDESKey).
Note: SecureKeyStore doesn't have any relation with java.security.KeyStore SecureKeyStore works on objects of type org.jpos.security.SecureKey
SecureKey| Nested Class Summary | |
|---|---|
static class |
SecureKeyStore.SecureKeyStoreException
|
| Method Summary | |
|---|---|
SecureKey |
getKey(java.lang.String alias)
returns the key assiciated with the given alias |
void |
setKey(java.lang.String alias,
SecureKey key)
Assigns the given key to the given alias. |
| Method Detail |
|---|
SecureKey getKey(java.lang.String alias)
throws SecureKeyStore.SecureKeyStoreException
alias - the alias name
SecureKeyStore.SecureKeyStoreException - if SecureKeyStore is not initialized or if
the operation fails for some other reason.
void setKey(java.lang.String alias,
SecureKey key)
throws SecureKeyStore.SecureKeyStoreException
alias - the alias namekey - the key to be associated with the alias
SecureKeyStore.SecureKeyStoreException - if SecureKeyStore is not initialized or the key
can't be recovered.
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||