Class ReadOnlyClientSecurityConfig
- java.lang.Object
-
- io.servicetalk.transport.netty.internal.ReadOnlyClientSecurityConfig
-
- Direct Known Subclasses:
ClientSecurityConfig
public class ReadOnlyClientSecurityConfig extends java.lang.Object
Read-only security config for clients.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
hostnameVerificationAlgorithm
protected java.lang.String
hostNameVerificationHost
protected int
hostNameVerificationPort
Only valid ifhostNameVerificationHost
is valid.protected java.util.function.Supplier<java.io.InputStream>
keyCertChainSupplier
protected javax.net.ssl.KeyManagerFactory
keyManagerFactory
protected java.lang.String
keyPassword
protected java.util.function.Supplier<java.io.InputStream>
keySupplier
protected java.lang.String
sniHostname
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReadOnlyClientSecurityConfig(ReadOnlyClientSecurityConfig from)
Copy constructor.protected
ReadOnlyClientSecurityConfig(java.lang.String serverHostname, int serverPort)
Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
hostnameVerificationAlgorithm()
Returns the host name verification algorithm.java.lang.String
hostnameVerificationHost()
Returns the host name verification host.int
hostnameVerificationPort()
Returns the host name verification port.java.lang.String
sniHostname()
Returns the SNI host name.
-
-
-
Field Detail
-
hostnameVerificationAlgorithm
@Nullable protected java.lang.String hostnameVerificationAlgorithm
-
hostNameVerificationHost
@Nullable protected java.lang.String hostNameVerificationHost
-
hostNameVerificationPort
protected int hostNameVerificationPort
Only valid ifhostNameVerificationHost
is valid.
-
sniHostname
@Nullable protected java.lang.String sniHostname
-
keyManagerFactory
@Nullable protected javax.net.ssl.KeyManagerFactory keyManagerFactory
-
keyCertChainSupplier
protected java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier
-
keySupplier
protected java.util.function.Supplier<java.io.InputStream> keySupplier
-
keyPassword
@Nullable protected java.lang.String keyPassword
-
-
Constructor Detail
-
ReadOnlyClientSecurityConfig
protected ReadOnlyClientSecurityConfig(java.lang.String serverHostname, int serverPort)
Creates new instance.- Parameters:
serverHostname
- Hostname for the server.serverPort
- Port for the server.
-
ReadOnlyClientSecurityConfig
protected ReadOnlyClientSecurityConfig(ReadOnlyClientSecurityConfig from)
Copy constructor.- Parameters:
from
-ReadOnlyClientSecurityConfig
to copy.
-
-
Method Detail
-
hostnameVerificationAlgorithm
@Nullable public java.lang.String hostnameVerificationAlgorithm()
Returns the host name verification algorithm.- Returns:
- The host name verification algorithm.
-
hostnameVerificationHost
@Nullable public java.lang.String hostnameVerificationHost()
Returns the host name verification host.- Returns:
- The host name verification host.
-
hostnameVerificationPort
public int hostnameVerificationPort()
Returns the host name verification port.- Returns:
- The host name verification port.
-
sniHostname
@Nullable public java.lang.String sniHostname()
Returns the SNI host name.- Returns:
- The SNI host name.
-
-