org.mule.api.security
Interface TlsDirectKeyStore

All Known Implementing Classes:
AjaxConnector, HttpsConnector, HttpsPollingConnector, JettyHttpsConnector, SslConnector, TlsConfiguration, TlsConnector

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.


Method Summary
 java.lang.String getKeyManagerAlgorithm()
           
 javax.net.ssl.KeyManagerFactory getKeyManagerFactory()
           
 java.lang.String getKeyPassword()
           
 java.lang.String getKeyStore()
           
 java.lang.String getKeyStorePassword()
           
 java.lang.String getKeyStoreType()
           
 void setKeyManagerAlgorithm(java.lang.String keyManagerAlgorithm)
           
 void setKeyPassword(java.lang.String keyPassword)
           
 void setKeyStore(java.lang.String name)
           
 void setKeyStorePassword(java.lang.String storePassword)
           
 void setKeyStoreType(java.lang.String keystoreType)
           
 

Method Detail

getKeyStore

java.lang.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

void setKeyStore(java.lang.String name)
                 throws java.io.IOException
Parameters:
name - The location of the keystore that contains public certificates and private keys for identification.
Throws:
java.io.IOException - If the location cannot be resolved via the file system or classpath

getKeyPassword

java.lang.String getKeyPassword()
Returns:
The password used to protect the private key(s)

setKeyPassword

void setKeyPassword(java.lang.String keyPassword)
Parameters:
keyPassword - The password used to protect the private key(s)

getKeyStorePassword

java.lang.String getKeyStorePassword()
Returns:
The password used to protect the keystore itself

setKeyStorePassword

void setKeyStorePassword(java.lang.String storePassword)
Parameters:
storePassword - The password used to protect the keystore itself

getKeyStoreType

java.lang.String getKeyStoreType()
Returns:
The type of keystore used in getKeyStore()

setKeyStoreType

void setKeyStoreType(java.lang.String keystoreType)
Parameters:
keystoreType - The type of keystore used in setKeyStore(String)

getKeyManagerAlgorithm

java.lang.String getKeyManagerAlgorithm()
Returns:
The algorithm used by the key store. The default comes from {

setKeyManagerAlgorithm

void setKeyManagerAlgorithm(java.lang.String keyManagerAlgorithm)
Parameters:
keyManagerAlgorithm - The algorithm used by the key store. The default comes from {

getKeyManagerFactory

javax.net.ssl.KeyManagerFactory getKeyManagerFactory()
Returns:
A source of key stores generated from the parameters supplied here.


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.