public class DefaultTlsContextFactory extends Object implements TlsContextFactory, Initialisable
TlsContextFactory
interface, which delegates all its operations to a
TlsConfiguration
object. Only enabled cipher suites and protocols will not delegate to it if configured.PHASE_NAME
Constructor and Description |
---|
DefaultTlsContextFactory() |
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic String getName()
public void setName(String name)
public String getKeyStorePath()
public void setKeyStorePath(String name) throws IOException
IOException
public String getKeyStoreType()
public void setKeyStoreType(String keyStoreType)
public String getKeyAlias()
public void setKeyAlias(String keyAlias)
public String getKeyStorePassword()
public void setKeyStorePassword(String storePassword)
public String getKeyManagerPassword()
public void setKeyManagerPassword(String keyManagerPassword)
public String getKeyManagerAlgorithm()
public void setKeyManagerAlgorithm(String keyManagerAlgorithm)
public String getTrustStorePath()
public void setTrustStorePath(String trustStorePath) throws IOException
IOException
public String getTrustStoreType()
public void setTrustStoreType(String trustStoreType)
public String getTrustStorePassword()
public void setTrustStorePassword(String trustStorePassword)
public String getTrustManagerAlgorithm()
public void setTrustManagerAlgorithm(String trustManagerAlgorithm)
public boolean isTrustStoreInsecure()
public void setTrustStoreInsecure(boolean insecure)
public SSLContext createSslContext() throws KeyManagementException, NoSuchAlgorithmException, CreateException
createSslContext
in interface TlsContextFactory
KeyManagementException
NoSuchAlgorithmException
CreateException
public String[] getEnabledCipherSuites()
TlsContextFactory
getEnabledCipherSuites
in interface TlsContextFactory
public void setEnabledCipherSuites(String enabledCipherSuites)
public String[] getEnabledProtocols()
TlsContextFactory
getEnabledProtocols
in interface TlsContextFactory
public void setEnabledProtocols(String enabledProtocols)
public boolean isKeyStoreConfigured()
isKeyStoreConfigured
in interface TlsContextFactory
public boolean isTrustStoreConfigured()
isTrustStoreConfigured
in interface TlsContextFactory
public TlsContextKeyStoreConfiguration getKeyStoreConfiguration()
getKeyStoreConfiguration
in interface TlsContextFactory
public TlsContextTrustStoreConfiguration getTrustStoreConfiguration()
getTrustStoreConfiguration
in interface TlsContextFactory
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.