FailProtocolSelector

cc.otavia.handler.ssl.protocol.ProtocolSelector.FailProtocolSelector
class FailProtocolSelector(engineWrapper: JdkSslEngine, supportedProtocols: Set[String]) extends NoFailProtocolSelector

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def noSelectMatchFound(): String

Attributes

Definition Classes

Inherited methods

override def select(protocols: List[String]): String

Callback invoked to select the application level protocol from the protocols provided.

Callback invoked to select the application level protocol from the protocols provided.

Value parameters

protocols

the protocols sent by the protocol advertiser

Attributes

Returns

the protocol selected by this ProtocolSelector. A null value will indicate the no protocols were selected but the handshake should not fail. The decision to fail the handshake is left to the other end negotiating the SSL handshake.

Throws
Exception

If the protocols provide warrant failing the SSL handshake with a fatal alert.

Definition Classes
Inherited from:
NoFailProtocolSelector
override def unsupported(): Unit

Callback invoked to let the application know that the peer does not support this ApplicationProtocolConfig

Callback invoked to let the application know that the peer does not support this ApplicationProtocolConfig

Attributes

Definition Classes
Inherited from:
NoFailProtocolSelector