public class KeyStoreFactory extends Object
KeyStore instance.| Constructor and Description |
|---|
KeyStoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
KeyStore |
newInstance()
Creates a new
KeyStore. |
void |
setData(byte[] data)
Sets the data which contains the key store.
|
void |
setDataFile(File dataFile)
Sets the data which contains the key store.
|
void |
setDataUrl(URL dataUrl)
Sets the data 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 |
setType(String type)
Sets the type of key store to create.
|
public KeyStore newInstance() throws KeyStoreException, NoSuchProviderException, NoSuchAlgorithmException, CertificateException, IOException
KeyStore. This method will be called by the base class
when Spring creates a bean using this FactoryBean.KeyStore instance.KeyStoreException - If we can't create an instance of the
KeyStore for the given typeNoSuchProviderException - If we don't have the provider registered to
create the KeyStoreNoSuchAlgorithmException - If the KeyStore algorithm cannot be usedCertificateException - If the KeyStore certificate cannot be loadedIOException - If the KeyStore cannot be loadedpublic void setType(String type)
type - the type to use when creating the key store.IllegalArgumentException - if the specified value is null.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 setData(byte[] data)
data - the byte array that contains the key storepublic void setDataFile(File dataFile) throws IOException
dataFile - the File that contains the key storeIOException - If we can't process the filepublic void setDataUrl(URL dataUrl) throws IOException
dataUrl - the URL that contains the key store.IOException - If we can't process the URLCopyright © 2004–2024 Apache MINA Project. All rights reserved.