Package com.yahoo.security.tls
Class ConfigFileBasedTlsContext
java.lang.Object
com.yahoo.security.tls.ConfigFileBasedTlsContext
- All Implemented Interfaces:
TlsContext,AutoCloseable
A
TlsContext that uses the tls configuration specified in the transport security options file.
The credentials are regularly reloaded to support short-lived certificates.- Author:
- bjorncs
-
Field Summary
Fields inherited from interface com.yahoo.security.tls.TlsContext
ALLOWED_CIPHER_SUITES, ALLOWED_PROTOCOLS, SSL_CONTEXT_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionConfigFileBasedTlsContext(Path tlsOptionsConfigFile, AuthorizationMode mode) ConfigFileBasedTlsContext(Path tlsOptionsConfigFile, AuthorizationMode mode, PeerAuthentication peerAuthentication) Allows the caller to override the default peer authentication mode. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.security.tls.TlsContext
createClientSslSocket, createServerSslSocket, createSslEngine, createSslEngine
-
Constructor Details
-
ConfigFileBasedTlsContext
-
ConfigFileBasedTlsContext
public ConfigFileBasedTlsContext(Path tlsOptionsConfigFile, AuthorizationMode mode, PeerAuthentication peerAuthentication) Allows the caller to override the default peer authentication mode. This is only intended to be used in situations where the TLS peer authentication is enforced at a higher protocol or application layer (e.g withPeerAuthentication.WANT).
-
-
Method Details
-
sslContext
- Specified by:
sslContextin interfaceTlsContext
-
parameters
- Specified by:
parametersin interfaceTlsContext
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceTlsContext
-