Top Inners Fields Constructors Methods
org.eclipse.jetty.alpn.conscrypt.server

public Class ConscryptServerALPNProcessor

extends Object
implements Server
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.io.ssl.ALPNProcessor.Server, org.eclipse.jetty.io.ssl.ALPNProcessor
Imports
java.security.Security, java.util.List, javax.net.ssl.SSLEngine, .SSLSocket, org.conscrypt.ApplicationProtocolSelector, .Conscrypt, .OpenSSLProvider, org.eclipse.jetty.alpn.server.ALPNServerConnection, org.eclipse.jetty.io.Connection, org.eclipse.jetty.io.ssl.ALPNProcessor, .SslConnection.SslEndPoint, .SslHandshakeListener, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
appliesTo(SSLEngine
the SSLEngine to check
sslEngine
)

Overrides default org.eclipse.jetty.io.ssl.ALPNProcessor.appliesTo.

Tests if this processor can be applied to the given SSLEngine.

public void
configure(SSLEngine
the SSLEngine to configure
sslEngine
,
Connection
the Connection to configure
connection
)

Overrides default org.eclipse.jetty.io.ssl.ALPNProcessor.configure.

Configures the given SSLEngine and the given Connection for ALPN.

public void
init()

Overrides default org.eclipse.jetty.io.ssl.ALPNProcessor.init.

Initializes this ALPNProcessor

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG

Constructor Detail

ConscryptServerALPNProcessorback to summary
public ConscryptServerALPNProcessor()

Method Detail

appliesToback to summary
public boolean appliesTo(SSLEngine sslEngine)

Overrides default org.eclipse.jetty.io.ssl.ALPNProcessor.appliesTo.

Doc from org.eclipse.jetty.io.ssl.ALPNProcessor.appliesTo.

Tests if this processor can be applied to the given SSLEngine.

Parameters
sslEngine:SSLEngine

the SSLEngine to check

Returns:boolean

true if the processor can be applied to the given SSLEngine

Annotations
@Override
configureback to summary
public void configure(SSLEngine sslEngine, Connection connection)

Overrides default org.eclipse.jetty.io.ssl.ALPNProcessor.configure.

Doc from org.eclipse.jetty.io.ssl.ALPNProcessor.configure.

Configures the given SSLEngine and the given Connection for ALPN.

Parameters
sslEngine:SSLEngine

the SSLEngine to configure

connection:Connection

the Connection to configure

Annotations
@Override
initback to summary
public void init()

Overrides default org.eclipse.jetty.io.ssl.ALPNProcessor.init.

Doc from org.eclipse.jetty.io.ssl.ALPNProcessor.init.

Initializes this ALPNProcessor

Annotations
@Override
org.eclipse.jetty.alpn.conscrypt.server back to summary

private final Class ConscryptServerALPNProcessor.ALPNCallback

extends ApplicationProtocolSelector
implements SslHandshakeListener
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.io.ssl.SslHandshakeListener, java.util.EventListener

Field Summary

Modifier and TypeField and Description
private final ALPNServerConnection

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
handshakeFailed(SslHandshakeListener.Event
the event object carrying information about the TLS handshake event
event
,
Throwable
the failure that caused the TLS handshake to fail
failure
)

Overrides default org.eclipse.jetty.io.ssl.SslHandshakeListener.handshakeFailed.

Callback method invoked when the TLS handshake fails.

public void
handshakeSucceeded(SslHandshakeListener.Event
the event object carrying information about the TLS handshake event
event
)

Overrides default org.eclipse.jetty.io.ssl.SslHandshakeListener.handshakeSucceeded.

Callback method invoked when the TLS handshake succeeds.

public String
selectApplicationProtocol(SSLEngine
the server-side engine
engine
,
List<String>
The list of client-supplied protocols
protocols
)

Implements abstract org.conscrypt.ApplicationProtocolSelector.selectApplicationProtocol.

Selects the appropriate ALPN protocol.

public String
selectApplicationProtocol(SSLSocket
the server-side socket
socket
,
List<String>
The list of client-supplied protocols
protocols
)

Implements abstract org.conscrypt.ApplicationProtocolSelector.selectApplicationProtocol.

Selects the appropriate ALPN protocol.

Field Detail

alpnConnectionback to summary
private final ALPNServerConnection alpnConnection

Constructor Detail

ALPNCallbackback to summary
private ALPNCallback(ALPNServerConnection connection)

Method Detail

handshakeFailedback to summary
public void handshakeFailed(SslHandshakeListener.Event event, Throwable failure)

Overrides default org.eclipse.jetty.io.ssl.SslHandshakeListener.handshakeFailed.

Doc from org.eclipse.jetty.io.ssl.SslHandshakeListener.handshakeFailed.

Callback method invoked when the TLS handshake fails.

Parameters
event:SslHandshakeListener.Event

the event object carrying information about the TLS handshake event

failure:Throwable

the failure that caused the TLS handshake to fail

Annotations
@Override
handshakeSucceededback to summary
public void handshakeSucceeded(SslHandshakeListener.Event event)

Overrides default org.eclipse.jetty.io.ssl.SslHandshakeListener.handshakeSucceeded.

Doc from org.eclipse.jetty.io.ssl.SslHandshakeListener.handshakeSucceeded.

Callback method invoked when the TLS handshake succeeds.

Parameters
event:SslHandshakeListener.Event

the event object carrying information about the TLS handshake event

Annotations
@Override
selectApplicationProtocolback to summary
public String selectApplicationProtocol(SSLEngine engine, List<String> protocols)

Implements abstract org.conscrypt.ApplicationProtocolSelector.selectApplicationProtocol.

Doc from org.conscrypt.ApplicationProtocolSelector.selectApplicationProtocol.

Selects the appropriate ALPN protocol.

Parameters
engine:SSLEngine

the server-side engine

protocols:List<String>

The list of client-supplied protocols

Returns:String

The function's result is an application protocol name, or null to indicate that none of the advertised names are acceptable. If the return value is an empty String then application protocol indications will not be used. If the return value is null (no value chosen) or is a value that was not advertised by the peer, a "no_application_protocol" alert will be sent to the peer and the connection will be terminated.

Annotations
@Override
selectApplicationProtocolback to summary
public String selectApplicationProtocol(SSLSocket socket, List<String> protocols)

Implements abstract org.conscrypt.ApplicationProtocolSelector.selectApplicationProtocol.

Doc from org.conscrypt.ApplicationProtocolSelector.selectApplicationProtocol.

Selects the appropriate ALPN protocol.

Parameters
socket:SSLSocket

the server-side socket

protocols:List<String>

The list of client-supplied protocols

Returns:String

The function's result is an application protocol name, or null to indicate that none of the advertised names are acceptable. If the return value is an empty String then application protocol indications will not be used. If the return value is null (no value chosen) or is a value that was not advertised by the peer, a "no_application_protocol" alert will be sent to the peer and the connection will be terminated.

Annotations
@Override