public class HttpsConnector extends HttpConnector implements TlsDirectKeyStore, TlsIndirectKeyStore, TlsDirectTrustStore, TlsProtocolHandler
HttpsConnector
provides Secure http connectivity on top of what is already provided with the
Mule HttpConnector
.Modifier and Type | Field and Description |
---|---|
static String |
HTTPS |
static String |
LOCAL_CERTIFICATES |
static String |
PEER_CERTIFICATES |
clientConnectionManager, COOKIE_SPEC_NETSCAPE, COOKIE_SPEC_RFC2109, DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY, HTTP, HTTP_COOKIE_SPEC_PROPERTY, HTTP_COOKIES_PROPERTY, HTTP_CUSTOM_HEADERS_MAP_PROPERTY, HTTP_ENABLE_COOKIES_PROPERTY, HTTP_GET_BODY_PARAM_PROPERTY, HTTP_METHOD_PROPERTY, HTTP_PARAMS_PROPERTY, HTTP_POST_BODY_PARAM_PROPERTY, HTTP_PREFIX, HTTP_REQUEST_PROPERTY, HTTP_STATUS_PROPERTY, HTTP_VERSION_PROPERTY
CLIENT, DEFAULT_BACKLOG, DEFAULT_BUFFER_SIZE, DEFAULT_SO_LINGER, DEFAULT_SOCKET_TIMEOUT, KEEP_SEND_SOCKET_OPEN_PROPERTY, SERVER, TCP
connected, connectedSemaphore, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, muleContext, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect
INT_VALUE_NOT_SET
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
HttpsConnector() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialise() |
String |
getClientKeyStore() |
String |
getClientKeyStorePassword() |
String |
getClientKeyStoreType() |
String |
getKeyManagerAlgorithm() |
KeyManagerFactory |
getKeyManagerFactory() |
String |
getKeyPassword() |
String |
getKeyStore() |
String |
getKeyStorePassword() |
String |
getKeyStoreType() |
String |
getProtocol() |
String |
getProtocolHandler() |
Provider |
getProvider() |
SecurityProviderFactory |
getSecurityProviderFactory() |
protected ServerSocket |
getServerSocket(URI uri) |
String |
getSslType() |
String |
getTrustManagerAlgorithm() |
TrustManagerFactory |
getTrustManagerFactory() |
String |
getTrustStore() |
String |
getTrustStorePassword() |
String |
getTrustStoreType() |
boolean |
isExplicitTrustStoreOnly()
If the trust store is undefined and the trust store generated via System properties then the
key store certificates defined via
TODO can be used as a source of trust information. |
boolean |
isRequireClientAuthentication()
If a server socket is constructed directly (see
TlsConfiguration ) then this flag will
control whether client authenticatin is required. |
void |
setClientKeyStore(String clientKeyStore) |
void |
setClientKeyStorePassword(String clientKeyStorePassword) |
void |
setClientKeyStoreType(String clientKeyStoreType) |
void |
setExplicitTrustStoreOnly(boolean explicitTrustStoreOnly)
If the trust store is undefined and the trust store generated via System properties then the
key store certificates defined via
TODO can be used as a source of trust information. |
void |
setKeyManagerAlgorithm(String keyManagerAlgorithm) |
void |
setKeyPassword(String keyPassword) |
void |
setKeyStore(String keyStore) |
void |
setKeyStorePassword(String storePassword) |
void |
setKeyStoreType(String keystoreType) |
void |
setProtocolHandler(String protocolHandler) |
void |
setProvider(Provider provider) |
void |
setRequireClientAuthentication(boolean requireClientAuthentication)
If a server socket is constructed directly (see
TlsConfiguration ) then this flag will
control whether client authenticatin is required. |
void |
setSecurityProviderFactory(SecurityProviderFactory spFactory) |
void |
setSslType(String sslType) |
void |
setTrustManagerAlgorithm(String trustManagerAlgorithm) |
void |
setTrustManagerFactory(TrustManagerFactory trustManagerFactory) |
void |
setTrustStore(String trustStore) |
void |
setTrustStorePassword(String trustStorePassword) |
void |
setTrustStoreType(String trustStoreType) |
doClientConnect, getClientConnectionManager, getCookieSpec, getProxyHostname, getProxyPassword, getProxyPort, getProxyUsername, getReceiverKey, getReceivers, isEnableCookies, registerListener, setClientConnectionManager, setCookieSpec, setEnableCookies, setProxyHostname, setProxyPassword, setProxyPort, setProxyUsername, setupClientAuthorization
configureSocket, doConnect, doDisconnect, doDispose, doStart, doStop, getBacklog, getBufferSize, getClientSoTimeout, getKeepAliveMonitor, getKeepAliveTimeout, getOutputStream, getReceiveBacklog, getReceiveBufferSize, getSendBufferSize, getServerSocketFactory, getServerSoTimeout, getSocket, getSocketFactory, getSocketSoLinger, getTcpProtocol, isKeepAlive, isKeepSendSocketOpen, isRemoteSyncEnabled, isReuseAddress, isSendTcpNoDelay, isValidateConnections, setBacklog, setBufferSize, setClientSoTimeout, setKeepAlive, setKeepAliveTimeout, setKeepSendSocketOpen, setReceiveBacklog, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSendTcpNoDelay, setServerSocketFactory, setServerSoTimeout, setSocketFactory, setSocketSoLinger, setTcpProtocol, setTimeout, setValidateConnections
checkDisposed, connect, createReceiver, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeRequesters, disposeWorkManagers, exceptionThrown, fireNotification, getConnectedSemaphore, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMaxRequestersActive, getMessageAdapter, getMuleContext, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isStarted, isSyncEnabled, lookupReceiver, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherThreadingProfile, setDynamicNotification, setExceptionListener, setMaxDispatchersActive, setMaxRequestersActive, setMuleContext, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, start, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, workAccepted, workCompleted, workRejected, workStarted
public static final String HTTPS
public static final String PEER_CERTIFICATES
public static final String LOCAL_CERTIFICATES
protected ServerSocket getServerSocket(URI uri) throws IOException
getServerSocket
in class TcpConnector
IOException
protected void doInitialise() throws InitialisationException
doInitialise
in class HttpConnector
InitialisationException
public String getProtocol()
getProtocol
in interface Connector
getProtocol
in class HttpConnector
Connector.getProtocol()
public String getClientKeyStore()
getClientKeyStore
in interface TlsIndirectKeyStore
public String getClientKeyStorePassword()
getClientKeyStorePassword
in interface TlsIndirectKeyStore
public String getClientKeyStoreType()
getClientKeyStoreType
in interface TlsIndirectKeyStore
TlsIndirectKeyStore.setClientKeyStore(String)
public String getKeyManagerAlgorithm()
getKeyManagerAlgorithm
in interface TlsDirectKeyStore
public KeyManagerFactory getKeyManagerFactory()
getKeyManagerFactory
in interface TlsDirectKeyStore
public String getKeyPassword()
getKeyPassword
in interface TlsDirectKeyStore
public String getKeyStore()
getKeyStore
in interface TlsDirectKeyStore
public String getKeyStoreType()
getKeyStoreType
in interface TlsDirectKeyStore
TlsDirectKeyStore.getKeyStore()
public String getProtocolHandler()
getProtocolHandler
in interface TlsProtocolHandler
public Provider getProvider()
public SecurityProviderFactory getSecurityProviderFactory()
public String getSslType()
public String getKeyStorePassword()
getKeyStorePassword
in interface TlsDirectKeyStore
public String getTrustManagerAlgorithm()
getTrustManagerAlgorithm
in interface TlsDirectTrustStore
public TrustManagerFactory getTrustManagerFactory()
getTrustManagerFactory
in interface TlsDirectTrustStore
TlsDirectTrustStore.setTrustManagerFactory(TrustManagerFactory)
or one
constructed from the parameters in this interface (TlsIndirectTrustStore.setTrustStore(String)
etc).public String getTrustStore()
getTrustStore
in interface TlsIndirectTrustStore
public String getTrustStorePassword()
getTrustStorePassword
in interface TlsIndirectTrustStore
TlsIndirectTrustStore.getTrustStore()
public String getTrustStoreType()
getTrustStoreType
in interface TlsDirectTrustStore
TlsIndirectTrustStore.getTrustStore()
public boolean isExplicitTrustStoreOnly()
TlsDirectTrustStore
TODO
can be used as a source of trust information.isExplicitTrustStoreOnly
in interface TlsDirectTrustStore
public boolean isRequireClientAuthentication()
TlsDirectTrustStore
TlsConfiguration
) then this flag will
control whether client authenticatin is required. This does not apply to client connections.isRequireClientAuthentication
in interface TlsDirectTrustStore
public void setClientKeyStore(String clientKeyStore) throws IOException
setClientKeyStore
in interface TlsIndirectKeyStore
clientKeyStore
- The location of the keystore that contains public certificates and private keys
for identification.IOException
- If the location cannot be resolved via the file system or classpathpublic void setClientKeyStorePassword(String clientKeyStorePassword)
setClientKeyStorePassword
in interface TlsIndirectKeyStore
clientKeyStorePassword
- The password used to protect the keystore itselfpublic void setClientKeyStoreType(String clientKeyStoreType)
setClientKeyStoreType
in interface TlsIndirectKeyStore
public void setExplicitTrustStoreOnly(boolean explicitTrustStoreOnly)
TlsDirectTrustStore
TODO
can be used as a source of trust information.setExplicitTrustStoreOnly
in interface TlsDirectTrustStore
explicitTrustStoreOnly
- true if the key store data should not be used when a trust
store is otherwise undefinedpublic void setKeyManagerAlgorithm(String keyManagerAlgorithm)
setKeyManagerAlgorithm
in interface TlsDirectKeyStore
keyManagerAlgorithm
- The algorithm used by the key store. The default comes from {public void setKeyPassword(String keyPassword)
setKeyPassword
in interface TlsDirectKeyStore
keyPassword
- The password used to protect the private key(s)public void setKeyStore(String keyStore) throws IOException
setKeyStore
in interface TlsDirectKeyStore
keyStore
- The location of the keystore that contains public certificates and private keys
for identification.IOException
- If the location cannot be resolved via the file system or classpathpublic void setKeyStoreType(String keystoreType)
setKeyStoreType
in interface TlsDirectKeyStore
keystoreType
- The type of keystore used in TlsDirectKeyStore.setKeyStore(String)
public void setProtocolHandler(String protocolHandler)
setProtocolHandler
in interface TlsProtocolHandler
public void setProvider(Provider provider)
public void setRequireClientAuthentication(boolean requireClientAuthentication)
TlsDirectTrustStore
TlsConfiguration
) then this flag will
control whether client authenticatin is required. This does not apply to client connections.setRequireClientAuthentication
in interface TlsDirectTrustStore
requireClientAuthentication
- true if clients must be authenticatedpublic void setSecurityProviderFactory(SecurityProviderFactory spFactory)
public void setSslType(String sslType)
public void setKeyStorePassword(String storePassword)
setKeyStorePassword
in interface TlsDirectKeyStore
storePassword
- The password used to protect the keystore itselfpublic void setTrustManagerAlgorithm(String trustManagerAlgorithm)
setTrustManagerAlgorithm
in interface TlsDirectTrustStore
trustManagerAlgorithm
- The algorithm used by the trust store. The default comes from {public void setTrustManagerFactory(TrustManagerFactory trustManagerFactory)
setTrustManagerFactory
in interface TlsDirectTrustStore
trustManagerFactory
- The source of trust information if the store is accessed directly
(some connectors generate trust stores indirectly through System properties in which case this
value will be ignored - see TlsConfiguration
).public void setTrustStore(String trustStore) throws IOException
setTrustStore
in interface TlsIndirectTrustStore
trustStore
- The location of the keystore that contains public certificates of trusted servers.IOException
- If the location cannot be resolved via the file system or classpathpublic void setTrustStorePassword(String trustStorePassword)
setTrustStorePassword
in interface TlsIndirectTrustStore
trustStorePassword
- The password used to protected the trust store defined in
TlsIndirectTrustStore.setTrustStore(String)
public void setTrustStoreType(String trustStoreType)
setTrustStoreType
in interface TlsDirectTrustStore
trustStoreType
- The type of keystore used to implement the trust store defined in
TlsIndirectTrustStore.setTrustStore(String)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.