org.mule.providers.http
Class HttpsConnector
java.lang.Object
org.mule.providers.AbstractConnector
org.mule.providers.tcp.TcpConnector
org.mule.providers.http.HttpConnector
org.mule.providers.http.HttpsConnector
- All Implemented Interfaces:
- ExceptionListener, EventListener, javax.resource.spi.work.WorkListener, Disposable, Initialisable, UMOConnectable, UMOConnector, TlsDirectKeyStore, TlsDirectTrustStore, TlsIndirectKeyStore, TlsIndirectTrustStore
public class HttpsConnector
- extends HttpConnector
- implements TlsDirectKeyStore, TlsIndirectKeyStore, TlsDirectTrustStore
HttpsConnector
provides Https connectivity
Fields inherited from class org.mule.providers.http.HttpConnector |
clientConnectionManager, COOKIE_SPEC_NETSCAPE, COOKIE_SPEC_RFC2109, DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY, 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_REQUEST_PROPERTY, HTTP_STATUS_PROPERTY, HTTP_VERSION_PROPERTY |
Fields inherited from class org.mule.providers.AbstractConnector |
connected, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, name, numberOfConcurrentTransactedReceivers, receivers, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect |
Methods inherited from class org.mule.providers.http.HttpConnector |
getClientConnectionManager, getCookieSpec, getProxyHostname, getProxyPassword, getProxyPort, getProxyUsername, getReceiverKey, getReceivers, isEnableCookies, registerListener, setClientConnectionManager, setCookieSpec, setEnableCookies, setProxyHostname, setProxyPassword, setProxyPort, setProxyUsername |
Methods inherited from class org.mule.providers.tcp.TcpConnector |
doConnect, doDisconnect, doDispose, doStart, doStop, getBacklog, getBufferSize, getOutputStream, getReceiveBacklog, getReceiveBufferSize, getReceiveTimeout, getSendBufferSize, getSendSocketLinger, getSendTimeout, getServerSocketFactory, getSocket, getSocketFactory, getTcpProtocol, getTcpProtocolClassName, isKeepAlive, isKeepSendSocketOpen, isRemoteSyncEnabled, isReuseAddress, isSendTcpNoDelay, isValidateConnections, setBacklog, setBufferSize, setKeepAlive, setKeepSendSocketOpen, setReceiveBacklog, setReceiveBufferSize, setReceiveTimeout, setReuseAddress, setSendBufferSize, setSendSocketLinger, setSendTcpNoDelay, setSendTimeout, setServerSocketFactory, setSocketFactory, setTcpProtocol, setTcpProtocolClassName, setTimeout, setValidateConnections |
Methods inherited from class org.mule.providers.AbstractConnector |
checkDisposed, connect, createReceiver, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeWorkManagers, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMessageAdapter, getName, getNumberOfConcurrentTransactedReceivers, getReceiver, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getStreamMessageAdapter, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isStarted, lookupReceiver, receive, receive, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setEnableMessageEvents, setExceptionListener, setMaxDispatchersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, startConnector, stopConnector, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, workAccepted, workCompleted, workRejected, workStarted |
PEER_CERTIFICATES
public static final String PEER_CERTIFICATES
- See Also:
- Constant Field Values
LOCAL_CERTIFICATES
public static final String LOCAL_CERTIFICATES
- See Also:
- Constant Field Values
HttpsConnector
public HttpsConnector()
getServerSocket
protected ServerSocket getServerSocket(URI uri)
throws IOException
- Overrides:
getServerSocket
in class TcpConnector
- Throws:
IOException
doInitialise
protected void doInitialise()
throws InitialisationException
- Overrides:
doInitialise
in class HttpConnector
- Throws:
InitialisationException
getProtocol
public String getProtocol()
- Specified by:
getProtocol
in interface UMOConnector
- Overrides:
getProtocol
in class HttpConnector
- Returns:
- the primary protocol name for endpoints of this connector
- See Also:
UMOConnector.getProtocol()
getClientKeyStore
public String getClientKeyStore()
- Specified by:
getClientKeyStore
in interface TlsIndirectKeyStore
- 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.
getClientKeyStorePassword
public String getClientKeyStorePassword()
- Specified by:
getClientKeyStorePassword
in interface TlsIndirectKeyStore
- Returns:
- The password used to protect the keystore itself
getClientKeyStoreType
public String getClientKeyStoreType()
- Specified by:
getClientKeyStoreType
in interface TlsIndirectKeyStore
getKeyManagerAlgorithm
public String getKeyManagerAlgorithm()
- Specified by:
getKeyManagerAlgorithm
in interface TlsDirectKeyStore
- Returns:
- The algorithm used by the key store. The default comes from {
getKeyManagerFactory
public KeyManagerFactory getKeyManagerFactory()
- Specified by:
getKeyManagerFactory
in interface TlsDirectKeyStore
- Returns:
- A source of key stores generated from the parameters supplied here.
getKeyPassword
public String getKeyPassword()
- Specified by:
getKeyPassword
in interface TlsDirectKeyStore
- Returns:
- The password used to protect the private key(s)
getKeyStore
public String getKeyStore()
- Specified by:
getKeyStore
in interface TlsDirectKeyStore
- 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.
getKeystoreType
public String getKeystoreType()
- Specified by:
getKeystoreType
in interface TlsDirectKeyStore
- Returns:
- The type of keystore used in
TlsDirectKeyStore.getKeyStore()
getProtocolHandler
public String getProtocolHandler()
getProvider
public Provider getProvider()
getSecurityProviderFactory
public SecurityProviderFactory getSecurityProviderFactory()
getSslType
public String getSslType()
getStorePassword
public String getStorePassword()
- Specified by:
getStorePassword
in interface TlsDirectKeyStore
- Returns:
- The password used to protect the keystore itself
getTrustManagerAlgorithm
public String getTrustManagerAlgorithm()
- Specified by:
getTrustManagerAlgorithm
in interface TlsDirectTrustStore
- Returns:
- The algorithm used by the trust store. The default comes from {
getTrustManagerFactory
public TrustManagerFactory getTrustManagerFactory()
- Specified by:
getTrustManagerFactory
in interface TlsDirectTrustStore
- Returns:
- Either the factory defined by
TlsDirectTrustStore.setTrustManagerFactory(TrustManagerFactory)
or one
constructed from the parameters in this interface (TlsIndirectTrustStore.setTrustStore(String)
etc).
getTrustStore
public String getTrustStore()
- Specified by:
getTrustStore
in interface TlsIndirectTrustStore
- Returns:
- The location (resolved relative to the current classpath and file system, if possible)
of the keystore that contains public certificates of trusted servers.
getTrustStorePassword
public String getTrustStorePassword()
- Specified by:
getTrustStorePassword
in interface TlsIndirectTrustStore
- Returns:
- The password used to protected the trust store defined in
TlsIndirectTrustStore.getTrustStore()
getTrustStoreType
public String getTrustStoreType()
- Specified by:
getTrustStoreType
in interface TlsDirectTrustStore
- Returns:
- The type of keystore used to implement the trust store defined in
TlsIndirectTrustStore.getTrustStore()
isExplicitTrustStoreOnly
public boolean isExplicitTrustStoreOnly()
- Description copied from interface:
TlsDirectTrustStore
- 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.
- Specified by:
isExplicitTrustStoreOnly
in interface TlsDirectTrustStore
- Returns:
- true if the key store data should not be used when a trust store is otherwise
undefined
isRequireClientAuthentication
public boolean isRequireClientAuthentication()
- Description copied from interface:
TlsDirectTrustStore
- If a server socket is constructed directly (see
TlsConfiguration
) then this flag will
control whether client authenticatin is required. This does not apply to client connections.
- Specified by:
isRequireClientAuthentication
in interface TlsDirectTrustStore
- Returns:
- true if clients must be authenticated
setClientKeyStore
public void setClientKeyStore(String clientKeyStore)
throws IOException
- Specified by:
setClientKeyStore
in interface TlsIndirectKeyStore
- Parameters:
clientKeyStore
- 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
setClientKeyStorePassword
public void setClientKeyStorePassword(String clientKeyStorePassword)
- Specified by:
setClientKeyStorePassword
in interface TlsIndirectKeyStore
setClientKeyStoreType
public void setClientKeyStoreType(String clientKeyStoreType)
- Specified by:
setClientKeyStoreType
in interface TlsIndirectKeyStore
setExplicitTrustStoreOnly
public void setExplicitTrustStoreOnly(boolean explicitTrustStoreOnly)
- Description copied from interface:
TlsDirectTrustStore
- 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.
- Specified by:
setExplicitTrustStoreOnly
in interface TlsDirectTrustStore
- Parameters:
explicitTrustStoreOnly
- true if the key store data should not be used when a trust
store is otherwise undefined
setKeyManagerAlgorithm
public void setKeyManagerAlgorithm(String keyManagerAlgorithm)
- Specified by:
setKeyManagerAlgorithm
in interface TlsDirectKeyStore
- Parameters:
keyManagerAlgorithm
- The algorithm used by the key store. The default comes from {
setKeyPassword
public void setKeyPassword(String keyPassword)
- Specified by:
setKeyPassword
in interface TlsDirectKeyStore
- Parameters:
keyPassword
- The password used to protect the private key(s)
setKeyStore
public void setKeyStore(String keyStore)
throws IOException
- Specified by:
setKeyStore
in interface TlsDirectKeyStore
- Parameters:
keyStore
- 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
setKeystoreType
public void setKeystoreType(String keystoreType)
- Specified by:
setKeystoreType
in interface TlsDirectKeyStore
- Parameters:
keystoreType
- The type of keystore used in TlsDirectKeyStore.setKeyStore(String)
setProtocolHandler
public void setProtocolHandler(String protocolHandler)
setProvider
public void setProvider(Provider provider)
setRequireClientAuthentication
public void setRequireClientAuthentication(boolean requireClientAuthentication)
- Description copied from interface:
TlsDirectTrustStore
- If a server socket is constructed directly (see
TlsConfiguration
) then this flag will
control whether client authenticatin is required. This does not apply to client connections.
- Specified by:
setRequireClientAuthentication
in interface TlsDirectTrustStore
- Parameters:
requireClientAuthentication
- true if clients must be authenticated
setSecurityProviderFactory
public void setSecurityProviderFactory(SecurityProviderFactory spFactory)
setSslType
public void setSslType(String sslType)
setStorePassword
public void setStorePassword(String storePassword)
- Specified by:
setStorePassword
in interface TlsDirectKeyStore
- Parameters:
storePassword
- The password used to protect the keystore itself
setTrustManagerAlgorithm
public void setTrustManagerAlgorithm(String trustManagerAlgorithm)
- Specified by:
setTrustManagerAlgorithm
in interface TlsDirectTrustStore
- Parameters:
trustManagerAlgorithm
- The algorithm used by the trust store. The default comes from {
setTrustManagerFactory
public void setTrustManagerFactory(TrustManagerFactory trustManagerFactory)
- Specified by:
setTrustManagerFactory
in interface TlsDirectTrustStore
- Parameters:
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
).
setTrustStore
public void setTrustStore(String trustStore)
throws IOException
- Specified by:
setTrustStore
in interface TlsIndirectTrustStore
- Parameters:
trustStore
- The location of the keystore that contains public certificates of trusted servers.
- Throws:
IOException
- If the location cannot be resolved via the file system or classpath
setTrustStorePassword
public void setTrustStorePassword(String trustStorePassword)
- Specified by:
setTrustStorePassword
in interface TlsIndirectTrustStore
- Parameters:
trustStorePassword
- The password used to protected the trust store defined in
TlsIndirectTrustStore.setTrustStore(String)
setTrustStoreType
public void setTrustStoreType(String trustStoreType)
- Specified by:
setTrustStoreType
in interface TlsDirectTrustStore
- Parameters:
trustStoreType
- The type of keystore used to implement the trust store defined in
TlsIndirectTrustStore.setTrustStore(String)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.