Package com.yahoo.jrt
Interface CryptoEngine
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
MaybeTlsCryptoEngine
,NullCryptoEngine
,TlsCryptoEngine
,XorCryptoEngine
public interface CryptoEngine extends AutoCloseable
Component responsible for wrapping low-level sockets into appropriate CryptoSocket instances. This is the top-level interface used by code wanting to perform network io with appropriate encryption.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
CryptoSocket
createClientCryptoSocket(SocketChannel channel, Spec spec)
static CryptoEngine
createDefault()
CryptoSocket
createServerCryptoSocket(SocketChannel channel)
-
-
-
Method Detail
-
createClientCryptoSocket
CryptoSocket createClientCryptoSocket(SocketChannel channel, Spec spec)
-
createServerCryptoSocket
CryptoSocket createServerCryptoSocket(SocketChannel channel)
-
createDefault
static CryptoEngine createDefault()
-
close
default void close()
- Specified by:
close
in interfaceAutoCloseable
-
-