Class JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelector
java.lang.Object
io.netty.handler.ssl.JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelector
- All Implemented Interfaces:
JdkApplicationProtocolNegotiator.ProtocolSelector
- Direct Known Subclasses:
JdkBaseApplicationProtocolNegotiator.FailProtocolSelector
- Enclosing class:
JdkBaseApplicationProtocolNegotiator
static class JdkBaseApplicationProtocolNegotiator.NoFailProtocolSelector
extends java.lang.Object
implements JdkApplicationProtocolNegotiator.ProtocolSelector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JdkSslEngineprivate final java.util.Set<java.lang.String> -
Constructor Summary
ConstructorsConstructorDescriptionNoFailProtocolSelector(JdkSslEngine engineWrapper, java.util.Set<java.lang.String> supportedProtocols) -
Method Summary
Modifier and TypeMethodDescriptionjava.lang.Stringjava.lang.Stringselect(java.util.List<java.lang.String> protocols) Callback invoked to select the application level protocol from theprotocolsprovided.voidCallback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
engineWrapper
-
supportedProtocols
private final java.util.Set<java.lang.String> supportedProtocols
-
-
Constructor Details
-
NoFailProtocolSelector
NoFailProtocolSelector(JdkSslEngine engineWrapper, java.util.Set<java.lang.String> supportedProtocols)
-
-
Method Details
-
unsupported
public void unsupported()Description copied from interface:JdkApplicationProtocolNegotiator.ProtocolSelectorCallback invoked to let the application know that the peer does not support thisApplicationProtocolNegotiator.- Specified by:
unsupportedin interfaceJdkApplicationProtocolNegotiator.ProtocolSelector
-
select
public java.lang.String select(java.util.List<java.lang.String> protocols) throws java.lang.Exception Description copied from interface:JdkApplicationProtocolNegotiator.ProtocolSelectorCallback invoked to select the application level protocol from theprotocolsprovided.- Specified by:
selectin interfaceJdkApplicationProtocolNegotiator.ProtocolSelector- Parameters:
protocols- the protocols sent by the protocol advertiser- Returns:
- the protocol selected by this
JdkApplicationProtocolNegotiator.ProtocolSelector. Anullvalue 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:
java.lang.Exception- If theprotocolsprovide warrant failing the SSL handshake with a fatal alert.
-
noSelectMatchFound
public java.lang.String noSelectMatchFound() throws java.lang.Exception- Throws:
java.lang.Exception
-