Package io.github.rhusar.securenio.channels.spi
package io.github.rhusar.securenio.channels.spi
Service-provider support for using secure channels with a
Selector.
The JDK's selector implementation only accepts its own internal channel types, so the secure
channel decorators from the io.github.rhusar.securenio.channels package cannot be
registered with a system selector directly. The
DelegatingSelectorProvider solves this by opening
selectors that delegate all operations to a real system selector while intercepting channel
registration: when a secure channel is registered, its underlying raw channel is registered with
the real selector instead, so the returned SelectionKey reflects the
readiness of the raw transport.
- Author:
- Radoslav Husar
-
ClassesClassDescriptionA
SelectorProviderwhose sole purpose is to provide aDelegatingSelectorcapable of handling registration of TLS/DTLS-wrapped channels.