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 static ConscryptAlpnSslEngine | newClientEngine(SSLEngine engine, BufferAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated
as a consequence of
JdkApplicationProtocolNegotiator being deprecated.
|
| pack-priv static ConscryptAlpnSslEngine | newServerEngine(SSLEngine engine, BufferAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated
as a consequence of
JdkApplicationProtocolNegotiator being deprecated.
|
| public final SSLEngineResult | unwrap(ByteBuffer[]
The array of source buffers with data to unwrap. srcs, ByteBuffer[] The array of destination buffers where the unwrapped data should be written. dests)Implements io. javax., but takes an array of input buffers.
|
| USE_BUFFER_ALLOCATOR | back to summary |
|---|---|
| private static final boolean USE_BUFFER_ALLOCATOR | |
| ConscryptAlpnSslEngine | back to summary |
|---|---|
| private ConscryptAlpnSslEngine(SSLEngine engine, BufferAllocator 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.
| |
| newClientEngine | back to summary |
|---|---|
| pack-priv static ConscryptAlpnSslEngine newClientEngine(SSLEngine engine, BufferAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated as a consequence of | |
| newServerEngine | back to summary |
|---|---|
| pack-priv static ConscryptAlpnSslEngine newServerEngine(SSLEngine engine, BufferAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated as a consequence of | |
| unwrap | back to summary |
|---|---|
| public final SSLEngineResult unwrap(ByteBuffer[] srcs, ByteBuffer[] dests) throws SSLException Implements io. Doc from io. Similar to
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final Buffer |
| 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 Buffer nettyBuffer | |
| BufferAdapter | back to summary |
|---|---|
| pack-priv BufferAdapter(BufferAllocator allocator, int capacity) | |
| 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 BufferAllocator |
| 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 BufferAllocator alloc | |
| BufferAllocatorAdapter | back to summary |
|---|---|
| pack-priv BufferAllocatorAdapter(BufferAllocator 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, BufferAllocator 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, BufferAllocator 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, BufferAllocator 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, BufferAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator)
Deprecated as a consequence of | |
| selectProtocol | back to summary |
|---|---|
| private void selectProtocol() throws SSLException | |