Package com.floragunn.codova.config.net
Class TLSConfig
- java.lang.Object
-
- com.floragunn.codova.config.net.TLSConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTLSConfig.Builderstatic classTLSConfig.ClientCertAuthConfig
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TLSConfig.ClientCertAuthConfiggetClientCertAuthConfig()HostnameVerifiergetHostnameVerifier()SSLSocketFactorygetRestrictedSSLSocketFactory()String[]getSupportedCipherSuites()String[]getSupportedProtocols()SSLContextgetUnrestrictedSslContext()booleanisHostnameVerificationEnabled()booleanisStartTlsEnabled()booleanisTrustAllEnabled()static TLSConfigparse(DocNode config, Parser.Context parserContext)static TLSConfigparse(Map<String,Object> config)static TLSConfigparseInclStartTlsSupport(DocNode config, Parser.Context parserContext)static TLSConfigparseInclStartTlsSupport(Map<String,Object> config)Map<String,Object>toBasicObject()static PrivateKeytoPrivateKey(String string, String keyPassword)org.apache.http.conn.ssl.SSLConnectionSocketFactorytoSSLConnectionSocketFactory()org.apache.http.nio.conn.ssl.SSLIOSessionStrategytoSSLIOSessionStrategy()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.floragunn.codova.documents.Document
meta, toBytes, toDeepBasicObject, toDocNode, toJsonString, toPrettyJsonString, toSmile, toString, toYamlString
-
-
-
-
Method Detail
-
parse
public static TLSConfig parse(DocNode config, Parser.Context parserContext) throws ConfigValidationException
- Throws:
ConfigValidationException
-
parseInclStartTlsSupport
public static TLSConfig parseInclStartTlsSupport(DocNode config, Parser.Context parserContext) throws ConfigValidationException
- Throws:
ConfigValidationException
-
parse
public static TLSConfig parse(Map<String,Object> config) throws ConfigValidationException
- Throws:
ConfigValidationException
-
parseInclStartTlsSupport
public static TLSConfig parseInclStartTlsSupport(Map<String,Object> config) throws ConfigValidationException
- Throws:
ConfigValidationException
-
toBasicObject
public Map<String,Object> toBasicObject()
- Specified by:
toBasicObjectin interfaceDocument<TLSConfig>
-
getUnrestrictedSslContext
public SSLContext getUnrestrictedSslContext()
-
getRestrictedSSLSocketFactory
public SSLSocketFactory getRestrictedSSLSocketFactory()
-
getSupportedProtocols
public String[] getSupportedProtocols()
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
-
getHostnameVerifier
public HostnameVerifier getHostnameVerifier()
-
toSSLIOSessionStrategy
public org.apache.http.nio.conn.ssl.SSLIOSessionStrategy toSSLIOSessionStrategy()
-
toSSLConnectionSocketFactory
public org.apache.http.conn.ssl.SSLConnectionSocketFactory toSSLConnectionSocketFactory()
-
isHostnameVerificationEnabled
public boolean isHostnameVerificationEnabled()
-
isTrustAllEnabled
public boolean isTrustAllEnabled()
-
getClientCertAuthConfig
public TLSConfig.ClientCertAuthConfig getClientCertAuthConfig()
-
toPrivateKey
public static PrivateKey toPrivateKey(String string, String keyPassword) throws ConfigValidationException
- Throws:
ConfigValidationException
-
isStartTlsEnabled
public boolean isStartTlsEnabled()
-
-