org.mule.umo.security
Interface TlsDirectKeyStore
- All Known Implementing Classes:
- HttpsConnector, SslConnector, TlsConfiguration
- public interface TlsDirectKeyStore
Configure direct key stores.
TLS/SSL connections are made on behalf of an entity, which can be anonymous or identified by a
certificate - this interface specifies how a keystore can be used to provide the certificates
(and associated private keys) necessary for identification.
The information specified in this interface is used to configure a key store directly.
For more information see the documentation for the connector or protocol in question.
The comments in TlsConfiguration
may also be useful.
getKeyStore
public String getKeyStore()
- Returns:
- The location (resolved relative to the current classpath and file system, if possible)
of the keystore that contains public certificates and private keys for identification.
setKeyStore
public void setKeyStore(String name)
throws IOException
- Parameters:
name
- The location of the keystore that contains public certificates and private keys
for identification.
- Throws:
IOException
- If the location cannot be resolved via the file system or classpath
getKeyPassword
public String getKeyPassword()
- Returns:
- The password used to protect the private key(s)
setKeyPassword
public void setKeyPassword(String keyPassword)
- Parameters:
keyPassword
- The password used to protect the private key(s)
getStorePassword
public String getStorePassword()
- Returns:
- The password used to protect the keystore itself
setStorePassword
public void setStorePassword(String storePassword)
- Parameters:
storePassword
- The password used to protect the keystore itself
getKeystoreType
public String getKeystoreType()
- Returns:
- The type of keystore used in
getKeyStore()
setKeystoreType
public void setKeystoreType(String keystoreType)
- Parameters:
keystoreType
- The type of keystore used in setKeyStore(String)
getKeyManagerAlgorithm
public String getKeyManagerAlgorithm()
- Returns:
- The algorithm used by the key store. The default comes from {
setKeyManagerAlgorithm
public void setKeyManagerAlgorithm(String keyManagerAlgorithm)
- Parameters:
keyManagerAlgorithm
- The algorithm used by the key store. The default comes from {
getKeyManagerFactory
public KeyManagerFactory getKeyManagerFactory()
- Returns:
- A source of key stores generated from the parameters supplied here.
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.