|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.filter.ssl.KeyStoreFactory
public class KeyStoreFactory
A factory that creates and configures a new KeyStore
instance.
Constructor Summary | |
---|---|
KeyStoreFactory()
|
Method Summary | |
---|---|
java.security.KeyStore |
newInstance()
Creates a new KeyStore . |
void |
setData(byte[] data)
Sets the data which contains the key store. |
void |
setDataFile(java.io.File dataFile)
Sets the data which contains the key store. |
void |
setDataUrl(java.net.URL dataUrl)
Sets the data which contains the key store. |
void |
setPassword(java.lang.String password)
Sets the key store password. |
void |
setProvider(java.lang.String provider)
Sets the name of the provider to use when creating the key store. |
void |
setType(java.lang.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 KeyStoreFactory()
Method Detail |
---|
public java.security.KeyStore newInstance() throws java.security.KeyStoreException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, java.io.IOException
KeyStore
. This method will be called
by the base class when Spring creates a bean using this FactoryBean.
KeyStore
instance.
java.security.KeyStoreException
java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException
public void setType(java.lang.String type)
type
- the type to use when creating the key store.
java.lang.IllegalArgumentException
- if the specified value is
null
.public void setPassword(java.lang.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(java.lang.String provider)
provider
- the name of the provider, e.g. "SUN".public void setData(byte[] data)
data
- the byte array that contains the key storepublic void setDataFile(java.io.File dataFile) throws java.io.IOException
dataFile
- the File
that contains the key store
java.io.IOException
public void setDataUrl(java.net.URL dataUrl) throws java.io.IOException
dataUrl
- the URL
that contains the key store.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |