Class SSLParser
java.lang.Object
com.predic8.membrane.core.config.security.SSLParser
- Description
Configures inbound or outbound SSL connections.
- Topic
- 6. Security
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAcme()getKey()getTrust()inthashCode()booleanbooleanbooleanbooleanvoidvoidsetAlgorithm(String algorithm) voidsetCiphers(String ciphers) voidsetClientAuth(String clientAuth) voidsetEndpointIdentificationAlgorithm(String endpointIdentificationAlgorithm) voidsetIgnoreTimestampCheckFailure(boolean ignoreTimestampCheckFailure) voidvoidsetKeyGenerator(KeyGenerator keyGenerator) voidsetKeyStore(KeyStore keyStore) voidsetProtocol(String protocol) voidsetProtocols(String protocols) voidsetServerName(String serverName) voidsetShowSSLExceptions(boolean showSSLExceptions) voidvoidsetTrustStore(TrustStore trustStore) voidsetUseAsDefault(boolean useAsDefault) voidsetUseExperimentalHttp2(boolean useHttp2)
-
Constructor Details
-
SSLParser
public SSLParser()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getKeyStore
-
setKeyStore
-
getKey
-
setKey
- Description
- Used to manually compose the keystore.
-
getKeyGenerator
-
setKeyGenerator
- Description
- Used to dynamically generate a key for the incoming connection on the fly.
-
getTrustStore
-
setTrustStore
-
getAlgorithm
-
setAlgorithm
- Default
- java default
- Description
- getDefaultAlgorithm()
- Example
- SunX509
-
getProtocol
-
setProtocol
- Default
- TLS
- Description
- SSLContext.getInstance()
-
getProtocols
-
setProtocols
- Default
- TLS*
- Description
- SSLSocket.setEnabledProtocols()
-
getCiphers
-
setCiphers
- Default
- all system default ciphers
- Description
- Space separated list of ciphers to allow. getSupportedCipherSuites()
- Example
- TLS_ECDH_anon_WITH_RC4_128_SHA
-
getClientAuth
-
setClientAuth
- Default
- not set
- Description
- Either not set (=no), or want or need.
- Example
- need
-
isIgnoreTimestampCheckFailure
public boolean isIgnoreTimestampCheckFailure() -
setIgnoreTimestampCheckFailure
public void setIgnoreTimestampCheckFailure(boolean ignoreTimestampCheckFailure) -
getTrust
-
setTrust
- Description
- Used to manually compose the truststore.
-
getEndpointIdentificationAlgorithm
-
setEndpointIdentificationAlgorithm
- Default
- HTTPS
- Description
- See setEndpointIdentificationAlgorithm().
-
getServerName
-
setServerName
- Default
- same as target hostname.
- Description
- Setting the serverName tells Java to use the SNI (...) on outbound TLS connections to indicate to the TLS server, which hostname the client wants to connect to.
-
isShowSSLExceptions
public boolean isShowSSLExceptions() -
setShowSSLExceptions
public void setShowSSLExceptions(boolean showSSLExceptions) - Default
- true
- Description
- Tells Membrane to show SSL exceptions in its log
-
isUseAsDefault
public boolean isUseAsDefault() -
setUseAsDefault
public void setUseAsDefault(boolean useAsDefault) - Default
- true
- Description
- whether to use the SSLContext built from this SSLParser when no SNI header was transmitted.
-
isUseExperimentalHttp2
public boolean isUseExperimentalHttp2() -
setUseExperimentalHttp2
public void setUseExperimentalHttp2(boolean useHttp2) - Default
- false
- Description
- whether to enable receiving HTTP/2 requests. (experimental)
-
getAcme
-
setAcme
-