|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.core.security.DefaultKeyStoreLoader
public class DefaultKeyStoreLoader
A default implementation of KeyStoreLoader.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Constructor Summary | |
|---|---|
DefaultKeyStoreLoader()
Creates a key store. |
|
| Method Summary | |
|---|---|
void |
addKeyStore(KeyStore store)
Adds a new key store or refreshes a changed one. |
void |
clearKeyStores()
Clears all key stores. |
KeyStore |
getKeyStore(String alias)
Gets the first key store for the specified alias. |
KeyStore[] |
getKeyStores(String alias)
Gets all key stores for the specified alias. |
String |
getSecurityKey()
Gets the path finder key for resolving security paths. |
void |
load(File file,
String password)
Loads a key store from the specified file. |
void |
load(InputStream stream,
String password)
Loads a key store from the specified input stream. |
void |
load(String path,
String password)
Loads a key store from the specified path. |
void |
load(URL url,
String password)
Loads a key store from the specified URL. |
void |
removeKeyStore(KeyStore store)
Removes a key store. |
void |
removeKeyStores(String alias)
Removes all key stores for the specified alias. |
void |
setSecurityKey(String key)
Sets the path finder key for resolving security paths. |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
|---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultKeyStoreLoader()
| Method Detail |
|---|
public String getSecurityKey()
KeyStoreLoader
getSecurityKey in interface KeyStoreLoaderpublic void setSecurityKey(String key)
KeyStoreLoader
setSecurityKey in interface KeyStoreLoaderkey - the path finder key.public KeyStore getKeyStore(String alias)
KeyStoreLoader
getKeyStore in interface KeyStoreLoaderalias - the alias.
public KeyStore[] getKeyStores(String alias)
KeyStoreLoader
getKeyStores in interface KeyStoreLoaderalias - the alias.
public void addKeyStore(KeyStore store)
throws LogException
KeyStoreLoader
addKeyStore in interface KeyStoreLoaderstore - a key store.
LogException - on errors.public void removeKeyStore(KeyStore store)
KeyStoreLoader
removeKeyStore in interface KeyStoreLoaderstore - a key store.public void removeKeyStores(String alias)
KeyStoreLoaderNote that the associated key stores are removed from all of their other aliases as well.
removeKeyStores in interface KeyStoreLoaderalias - the alias.public void clearKeyStores()
KeyStoreLoader
clearKeyStores in interface KeyStoreLoader
public void load(String path,
String password)
throws LogException
KeyStoreLoader
load in interface KeyStoreLoaderpath - the path from which the key store is loaded.password - the (optional) password used to check the integrity.
LogException - on errors.
public void load(File file,
String password)
throws LogException
KeyStoreLoader
load in interface KeyStoreLoaderfile - the file from which the key store is loaded.password - the (optional) password used to check the integrity.
LogException - on errors.
public void load(URL url,
String password)
throws LogException
KeyStoreLoader
load in interface KeyStoreLoaderurl - the URL from which the key store is loaded.password - the (optional) password used to check the integrity.
LogException - on errors.
public void load(InputStream stream,
String password)
throws LogException
KeyStoreLoader
load in interface KeyStoreLoaderstream - the input stream from which the key store is loaded.password - the (optional) password used to check the integrity.
LogException - on errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||