Package com.yahoo.security.tls
Class DefaultTlsContext
java.lang.Object
com.yahoo.security.tls.DefaultTlsContext
- All Implemented Interfaces:
TlsContext,AutoCloseable
A static
TlsContext- Author:
- bjorncs
-
Field Summary
Fields inherited from interface com.yahoo.security.tls.TlsContext
ALLOWED_CIPHER_SUITES, ALLOWED_PROTOCOLS, SSL_CONTEXT_VERSION -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultTlsContextof(X509SslContext sslContext, PeerAuthentication peerAuthentication) static DefaultTlsContextof(X509SslContext sslContext, Set<String> acceptedCiphers, Set<String> acceptedProtocols, PeerAuthentication peerAuthentication) static DefaultTlsContextof(List<X509Certificate> certificates, PrivateKey privateKey, List<X509Certificate> caCertificates, AuthorizedPeers authorizedPeers, AuthorizationMode mode, PeerAuthentication peerAuthentication, HostnameVerification hostnameVerification) 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
close, createClientSslSocket, createServerSslSocket, createSslEngine, createSslEngine
-
Method Details
-
of
public static DefaultTlsContext of(X509SslContext sslContext, PeerAuthentication peerAuthentication) -
of
public static DefaultTlsContext of(List<X509Certificate> certificates, PrivateKey privateKey, List<X509Certificate> caCertificates, AuthorizedPeers authorizedPeers, AuthorizationMode mode, PeerAuthentication peerAuthentication, HostnameVerification hostnameVerification) -
of
public static DefaultTlsContext of(X509SslContext sslContext, Set<String> acceptedCiphers, Set<String> acceptedProtocols, PeerAuthentication peerAuthentication) -
sslContext
- Specified by:
sslContextin interfaceTlsContext
-
parameters
- Specified by:
parametersin interfaceTlsContext
-