public class ALPNLimitingSSLEngine extends SSLEngine
In theory this is not a perfect solution to the HTTP/2 cipher strength issue, but in practice it should be sufficent as any RFC compliant implementation should be able to negotiate TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
Constructor and Description |
---|
ALPNLimitingSSLEngine(SSLEngine delegate, Runnable invalidAlpnRunnable) |
public String getPeerHost()
getPeerHost
in class SSLEngine
public int getPeerPort()
getPeerPort
in class SSLEngine
public SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst) throws SSLException
wrap
in class SSLEngine
SSLException
public SSLEngineResult wrap(ByteBuffer[] srcs, ByteBuffer dst) throws SSLException
wrap
in class SSLEngine
SSLException
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException
unwrap
in class SSLEngine
SSLException
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts) throws SSLException
unwrap
in class SSLEngine
SSLException
public SSLSession getHandshakeSession()
getHandshakeSession
in class SSLEngine
public SSLParameters getSSLParameters()
getSSLParameters
in class SSLEngine
public void setSSLParameters(SSLParameters sslParameters)
setSSLParameters
in class SSLEngine
public SSLEngineResult wrap(ByteBuffer[] srcs, int off, int len, ByteBuffer dst) throws SSLException
wrap
in class SSLEngine
SSLException
public SSLEngineResult unwrap(ByteBuffer byteBuffer, ByteBuffer[] byteBuffers, int i, int i1) throws SSLException
unwrap
in class SSLEngine
SSLException
public Runnable getDelegatedTask()
getDelegatedTask
in class SSLEngine
public void closeInbound() throws SSLException
closeInbound
in class SSLEngine
SSLException
public boolean isInboundDone()
isInboundDone
in class SSLEngine
public void closeOutbound()
closeOutbound
in class SSLEngine
public boolean isOutboundDone()
isOutboundDone
in class SSLEngine
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLEngine
public String[] getEnabledCipherSuites()
getEnabledCipherSuites
in class SSLEngine
public void setEnabledCipherSuites(String[] strings)
setEnabledCipherSuites
in class SSLEngine
public String[] getSupportedProtocols()
getSupportedProtocols
in class SSLEngine
public String[] getEnabledProtocols()
getEnabledProtocols
in class SSLEngine
public void setEnabledProtocols(String[] strings)
setEnabledProtocols
in class SSLEngine
public SSLSession getSession()
getSession
in class SSLEngine
public void beginHandshake() throws SSLException
beginHandshake
in class SSLEngine
SSLException
public SSLEngineResult.HandshakeStatus getHandshakeStatus()
getHandshakeStatus
in class SSLEngine
public void setUseClientMode(boolean b)
setUseClientMode
in class SSLEngine
public boolean getUseClientMode()
getUseClientMode
in class SSLEngine
public void setNeedClientAuth(boolean b)
setNeedClientAuth
in class SSLEngine
public boolean getNeedClientAuth()
getNeedClientAuth
in class SSLEngine
public void setWantClientAuth(boolean b)
setWantClientAuth
in class SSLEngine
public boolean getWantClientAuth()
getWantClientAuth
in class SSLEngine
public void setEnableSessionCreation(boolean b)
setEnableSessionCreation
in class SSLEngine
public boolean getEnableSessionCreation()
getEnableSessionCreation
in class SSLEngine
Copyright © 2017 JBoss by Red Hat. All rights reserved.