Class TlsConfig
- java.lang.Object
-
- org.apache.hc.client5.http.config.TlsConfig
-
- All Implemented Interfaces:
java.lang.Cloneable
@Contract(threading=IMMUTABLE) public class TlsConfig extends java.lang.Object implements java.lang.Cloneable
Immutable class encapsulating TLS protocol settings.- Since:
- 5.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TlsConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description static TlsConfig
DEFAULT
private org.apache.hc.core5.util.Timeout
handshakeTimeout
private org.apache.hc.core5.http2.HttpVersionPolicy
httpVersionPolicy
private java.lang.String[]
supportedCipherSuites
private java.lang.String[]
supportedProtocols
-
Constructor Summary
Constructors Modifier Constructor Description protected
TlsConfig()
Intended for CDI compatibility(package private)
TlsConfig(org.apache.hc.core5.util.Timeout handshakeTimeout, java.lang.String[] supportedProtocols, java.lang.String[] supportedCipherSuites, org.apache.hc.core5.http2.HttpVersionPolicy httpVersionPolicy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TlsConfig
clone()
static TlsConfig.Builder
copy(TlsConfig config)
static TlsConfig.Builder
custom()
org.apache.hc.core5.util.Timeout
getHandshakeTimeout()
org.apache.hc.core5.http2.HttpVersionPolicy
getHttpVersionPolicy()
java.lang.String[]
getSupportedCipherSuites()
java.lang.String[]
getSupportedProtocols()
java.lang.String
toString()
-
-
-
Field Detail
-
DEFAULT
public static final TlsConfig DEFAULT
-
handshakeTimeout
private final org.apache.hc.core5.util.Timeout handshakeTimeout
-
supportedProtocols
private final java.lang.String[] supportedProtocols
-
supportedCipherSuites
private final java.lang.String[] supportedCipherSuites
-
httpVersionPolicy
private final org.apache.hc.core5.http2.HttpVersionPolicy httpVersionPolicy
-
-
Method Detail
-
getHandshakeTimeout
public org.apache.hc.core5.util.Timeout getHandshakeTimeout()
-
getSupportedProtocols
public java.lang.String[] getSupportedProtocols()
-
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
-
getHttpVersionPolicy
public org.apache.hc.core5.http2.HttpVersionPolicy getHttpVersionPolicy()
-
clone
protected TlsConfig clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
custom
public static TlsConfig.Builder custom()
-
copy
public static TlsConfig.Builder copy(TlsConfig config)
-
-