Top Description Fields Constructors Methods
io.undertow.protocols.ssl

pack-priv Class SNISSLContextSpi

extends SSLContextSpi
Class Inheritance
Imports
java.security.KeyManagementException, .SecureRandom, javax.net.ssl.KeyManager, .SSLContextSpi, .SSLEngine, .SSLServerSocketFactory, .SSLSessionContext, .SSLSocketFactory, .TrustManager

SSLContext that can be used to do SNI matching. This

Field Summary

Modifier and TypeField and Description
private final SNIContextMatcher

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected SSLEngine
engineCreateSSLEngine()

Implements abstract javax.net.ssl.SSLContextSpi.engineCreateSSLEngine.

Creates a new SSLEngine using this context.

protected SSLEngine
engineCreateSSLEngine(String
the non-authoritative name of the host
s
,
int
the non-authoritative port
i
)

Implements abstract javax.net.ssl.SSLContextSpi.engineCreateSSLEngine.

Creates a SSLEngine using this context.

protected SSLSessionContext
engineGetClientSessionContext()

Implements abstract javax.net.ssl.SSLContextSpi.engineGetClientSessionContext.

Returns a client SSLSessionContext object for this context.

protected SSLSessionContext
engineGetServerSessionContext()

Implements abstract javax.net.ssl.SSLContextSpi.engineGetServerSessionContext.

Returns a server SSLSessionContext object for this context.

protected SSLServerSocketFactory
engineGetServerSocketFactory()

Implements abstract javax.net.ssl.SSLContextSpi.engineGetServerSocketFactory.

Returns a ServerSocketFactory object for this context.

protected SSLSocketFactory
engineGetSocketFactory()

Implements abstract javax.net.ssl.SSLContextSpi.engineGetSocketFactory.

Returns a SocketFactory object for this context.

protected void
engineInit(KeyManager[]
the sources of authentication keys
keyManagers
,
TrustManager[]
the sources of peer authentication trust decisions
trustManagers
,
SecureRandom
the source of randomness
secureRandom
)

Implements abstract javax.net.ssl.SSLContextSpi.engineInit.

Initializes this context.

Inherited from javax.net.ssl.SSLContextSpi:
engineGetDefaultSSLParametersengineGetSupportedSSLParameters

Field Detail

matcherback to summary
private final SNIContextMatcher matcher

Constructor Detail

SNISSLContextSpiback to summary
pack-priv SNISSLContextSpi(SNIContextMatcher matcher)

Method Detail

engineCreateSSLEngineback to summary
protected SSLEngine engineCreateSSLEngine()

Implements abstract javax.net.ssl.SSLContextSpi.engineCreateSSLEngine.

Doc from javax.net.ssl.SSLContextSpi.engineCreateSSLEngine.

Creates a new SSLEngine using this context.

Applications using this factory method are providing no hints for an internal session reuse strategy. If hints are desired, engineCreateSSLEngine(String, int) should be used instead.

Some cipher suites (such as Kerberos) require remote hostname information, in which case this factory method should not be used.

Returns:SSLEngine

the SSLEngine Object

Annotations
@Override
engineCreateSSLEngineback to summary
protected SSLEngine engineCreateSSLEngine(String s, int i)

Implements abstract javax.net.ssl.SSLContextSpi.engineCreateSSLEngine.

Doc from javax.net.ssl.SSLContextSpi.engineCreateSSLEngine.

Creates a SSLEngine using this context.

Applications using this factory method are providing hints for an internal session reuse strategy.

Some cipher suites (such as Kerberos) require remote hostname information, in which case peerHost needs to be specified.

Parameters
s:String

the non-authoritative name of the host

i:int

the non-authoritative port

Returns:SSLEngine

the SSLEngine Object

Annotations
@Override
engineGetClientSessionContextback to summary
protected SSLSessionContext engineGetClientSessionContext()

Implements abstract javax.net.ssl.SSLContextSpi.engineGetClientSessionContext.

Doc from javax.net.ssl.SSLContextSpi.engineGetClientSessionContext.

Returns a client SSLSessionContext object for this context.

Returns:SSLSessionContext

the SSLSessionContext object

Annotations
@Override
engineGetServerSessionContextback to summary
protected SSLSessionContext engineGetServerSessionContext()

Implements abstract javax.net.ssl.SSLContextSpi.engineGetServerSessionContext.

Doc from javax.net.ssl.SSLContextSpi.engineGetServerSessionContext.

Returns a server SSLSessionContext object for this context.

Returns:SSLSessionContext

the SSLSessionContext object

Annotations
@Override
engineGetServerSocketFactoryback to summary
protected SSLServerSocketFactory engineGetServerSocketFactory()

Implements abstract javax.net.ssl.SSLContextSpi.engineGetServerSocketFactory.

Doc from javax.net.ssl.SSLContextSpi.engineGetServerSocketFactory.

Returns a ServerSocketFactory object for this context.

Returns:SSLServerSocketFactory

the ServerSocketFactory object

Annotations
@Override
engineGetSocketFactoryback to summary
protected SSLSocketFactory engineGetSocketFactory()

Implements abstract javax.net.ssl.SSLContextSpi.engineGetSocketFactory.

Doc from javax.net.ssl.SSLContextSpi.engineGetSocketFactory.

Returns a SocketFactory object for this context.

Returns:SSLSocketFactory

the SocketFactory object

Annotations
@Override
engineInitback to summary
protected void engineInit(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom secureRandom) throws KeyManagementException

Implements abstract javax.net.ssl.SSLContextSpi.engineInit.

Doc from javax.net.ssl.SSLContextSpi.engineInit.

Initializes this context.

Parameters
keyManagers:KeyManager[]

the sources of authentication keys

trustManagers:TrustManager[]

the sources of peer authentication trust decisions

secureRandom:SecureRandom

the source of randomness

Annotations
@Override
Exceptions
KeyManagementException:
if this operation fails