|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractFactoryBean
org.apache.mina.integration.spring.ssl.KeyStoreFactoryBean
public class KeyStoreFactoryBean
Spring FactoryBean
implementation
which makes it possible to configure KeyStore
instances
using Spring.
Constructor Summary | |
---|---|
KeyStoreFactoryBean()
|
Method Summary | |
---|---|
protected Object |
createInstance()
Creates a new KeyStore . |
Class |
getObjectType()
|
void |
setFile(File file)
Sets the file which contains the key store. |
void |
setPassword(String password)
Sets the key store password. |
void |
setProvider(String provider)
Sets the name of the provider to use when creating the key store. |
void |
setResource(Resource resource)
Sets a Spring Resource which contains the key store. |
void |
setType(String type)
Sets the type of key store to create. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyStoreFactoryBean()
Method Detail |
---|
protected Object createInstance() throws Exception
KeyStore
. This method will be called
by the base class when Spring creates a bean using this FactoryBean.
KeyStore
instance.
Exception
public Class getObjectType()
public void setFile(File file)
setProvider(String)
have to be set.
file
- the file to load the key store from.public void setPassword(String password)
null
no
password will be used to check the integrity of the key store.
password
- the password or null
if no password is
needed.public void setProvider(String provider)
provider
- the name of the provider, e.g. SUN.public void setResource(Resource resource)
Resource
which contains the key store. Either this
property or setFile(File)
have to be set.
resource
- the resource to load the key store from.public void setType(String type)
type
- the type to use when creating the key store.
IllegalArgumentException
- if the specified value is
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |