JdkSslEngine that uses the Conscrypt provider or SSL with ALPN.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final int | Returns: the maximum size of the encrypted output buffer required for the wrap operation.the number of plaintext bytes to be wrapped. plaintextBytes, int the number of buffers that the plaintext bytes are spread across. numBuffers)Calculates the maximum size of the encrypted output buffer required to wrap the given plaintext bytes. |
| pack-priv final int | Returns: the maximum size of the encrypted output buffer required for the wrap operation.the number of plaintext bytes to be wrapped. plaintextBytes, int the number of buffers that the plaintext bytes are spread across. numBuffers)Calculate the space necessary in an out buffer to hold the max size that the given plaintextBytes and numBuffers can produce when encrypted. |
| private int | |
| pack-priv static ConscryptAlpnSslEngine | newClientEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated
as a consequence of
JdkApplicationProtocolNegotiator being deprecated.
|
| pack-priv static ConscryptAlpnSslEngine | newServerEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated
as a consequence of
JdkApplicationProtocolNegotiator being deprecated.
|
| pack-priv final SSLEngineResult |
| USE_BUFFER_ALLOCATOR | back to summary |
|---|---|
| private static final boolean USE_BUFFER_ALLOCATOR | |
| ConscryptAlpnSslEngine | back to summary |
|---|---|
| private ConscryptAlpnSslEngine(SSLEngine engine, ByteBufAllocator alloc, List<String> protocols) | |
| calculateOutNetBufSize | back to summary |
|---|---|
| pack-priv final int calculateOutNetBufSize(int plaintextBytes, int numBuffers) Calculates the maximum size of the encrypted output buffer required to wrap the given plaintext bytes. Assumes as a worst case that there is one TLS record per buffer.
| |
| calculateRequiredOutBufSpace | back to summary |
|---|---|
| pack-priv final int calculateRequiredOutBufSpace(int plaintextBytes, int numBuffers) Calculate the space necessary in an out buffer to hold the max size that the given plaintextBytes and numBuffers can produce when encrypted. Assumes as a worst case that there is one TLS record per buffer.
| |
| calculateSpace | back to summary |
|---|---|
| private int calculateSpace(int plaintextBytes, int numBuffers, long maxPacketLength) | |
| newClientEngine | back to summary |
|---|---|
| pack-priv static ConscryptAlpnSslEngine newClientEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated as a consequence of | |
| newServerEngine | back to summary |
|---|---|
| pack-priv static ConscryptAlpnSslEngine newServerEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated as a consequence of | |
| unwrap | back to summary |
|---|---|
| pack-priv final SSLEngineResult unwrap(ByteBuffer[] srcs, ByteBuffer[] dests) throws SSLException | |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final ByteBuf |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | nioBuffer()
Implements abstract org. ByteBuffer that backs this buffer.
|
| public AllocatedBuffer | release()
Implements abstract org. ByteBuffer for reuse or garbage collection.
|
| public AllocatedBuffer | retain()
Overrides org. |
| buffer | back to summary |
|---|---|
| private final ByteBuffer buffer | |
| nettyBuffer | back to summary |
|---|---|
| private final ByteBuf nettyBuffer | |
| BufferAdapter | back to summary |
|---|---|
| pack-priv BufferAdapter(ByteBuf nettyBuffer) | |
| nioBuffer | back to summary |
|---|---|
| public ByteBuffer nioBuffer() Implements abstract org. Doc from org. Returns the
| |
| release | back to summary |
|---|---|
| public AllocatedBuffer release() Implements abstract org. Doc from org. Returns the delegate
| |
| retain | back to summary |
|---|---|
| public AllocatedBuffer retain() Overrides org. Doc from org. Returns the current instance for backward compatibility.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufAllocator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public AllocatedBuffer | allocateDirectBuffer(int capacity)
Implements abstract org. |
| alloc | back to summary |
|---|---|
| private final ByteBufAllocator alloc | |
| BufferAllocatorAdapter | back to summary |
|---|---|
| pack-priv BufferAllocatorAdapter(ByteBufAllocator alloc) | |
| allocateDirectBuffer | back to summary |
|---|---|
| public AllocatedBuffer allocateDirectBuffer(int capacity) Implements abstract org. Doc from org. Allocates a direct (i.e. non-heap) buffer with the given capacity.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final JdkApplicationProtocolNegotiator. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ClientEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated
as a consequence of
JdkApplicationProtocolNegotiator being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private void |
| protocolListener | back to summary |
|---|---|
| private final JdkApplicationProtocolNegotiator. | |
| ClientEngine | back to summary |
|---|---|
| pack-priv ClientEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated as a consequence of | |
| selectProtocol | back to summary |
|---|---|
| private void selectProtocol() throws SSLException | |
| Modifier and Type | Field and Description |
|---|---|
| private final JdkApplicationProtocolNegotiator. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ServerEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated
as a consequence of
JdkApplicationProtocolNegotiator being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private void |
| protocolSelector | back to summary |
|---|---|
| private final JdkApplicationProtocolNegotiator. | |
| ServerEngine | back to summary |
|---|---|
| pack-priv ServerEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated as a consequence of | |
| selectProtocol | back to summary |
|---|---|
| private void selectProtocol() throws SSLException | |