Package io.netty.handler.ssl
Class AlpnHackedSslSession
- java.lang.Object
-
- io.netty.handler.ssl.AlpnHackedSslSession
-
- All Implemented Interfaces:
SSLSession
public class AlpnHackedSslSession extends Object implements SSLSession
Hacked ALPN SSL Session for Netty. This class allows to grab negotiated protocols out of Hacked ALPN SSL Engine.- Author:
- Sebastian Ćaskawiec
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getApplicationBufferSize()
String
getCipherSuite()
long
getCreationTime()
byte[]
getId()
long
getLastAccessedTime()
Certificate[]
getLocalCertificates()
Principal
getLocalPrincipal()
int
getPacketBufferSize()
X509Certificate[]
getPeerCertificateChain()
Certificate[]
getPeerCertificates()
String
getPeerHost()
int
getPeerPort()
Principal
getPeerPrincipal()
String
getProtocol()
SSLSessionContext
getSessionContext()
Object
getValue(String s)
String[]
getValueNames()
void
invalidate()
boolean
isValid()
void
putValue(String s, Object o)
void
removeValue(String s)
-
-
-
Method Detail
-
getProtocol
public String getProtocol()
- Specified by:
getProtocol
in interfaceSSLSession
-
getId
public byte[] getId()
- Specified by:
getId
in interfaceSSLSession
-
getSessionContext
public SSLSessionContext getSessionContext()
- Specified by:
getSessionContext
in interfaceSSLSession
-
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTime
in interfaceSSLSession
-
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTime
in interfaceSSLSession
-
invalidate
public void invalidate()
- Specified by:
invalidate
in interfaceSSLSession
-
isValid
public boolean isValid()
- Specified by:
isValid
in interfaceSSLSession
-
putValue
public void putValue(String s, Object o)
- Specified by:
putValue
in interfaceSSLSession
-
getValue
public Object getValue(String s)
- Specified by:
getValue
in interfaceSSLSession
-
removeValue
public void removeValue(String s)
- Specified by:
removeValue
in interfaceSSLSession
-
getValueNames
public String[] getValueNames()
- Specified by:
getValueNames
in interfaceSSLSession
-
getPeerCertificates
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
- Specified by:
getPeerCertificates
in interfaceSSLSession
- Throws:
SSLPeerUnverifiedException
-
getLocalCertificates
public Certificate[] getLocalCertificates()
- Specified by:
getLocalCertificates
in interfaceSSLSession
-
getPeerCertificateChain
public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
- Specified by:
getPeerCertificateChain
in interfaceSSLSession
- Throws:
SSLPeerUnverifiedException
-
getPeerPrincipal
public Principal getPeerPrincipal() throws SSLPeerUnverifiedException
- Specified by:
getPeerPrincipal
in interfaceSSLSession
- Throws:
SSLPeerUnverifiedException
-
getLocalPrincipal
public Principal getLocalPrincipal()
- Specified by:
getLocalPrincipal
in interfaceSSLSession
-
getCipherSuite
public String getCipherSuite()
- Specified by:
getCipherSuite
in interfaceSSLSession
-
getPeerHost
public String getPeerHost()
- Specified by:
getPeerHost
in interfaceSSLSession
-
getPeerPort
public int getPeerPort()
- Specified by:
getPeerPort
in interfaceSSLSession
-
getPacketBufferSize
public int getPacketBufferSize()
- Specified by:
getPacketBufferSize
in interfaceSSLSession
-
getApplicationBufferSize
public int getApplicationBufferSize()
- Specified by:
getApplicationBufferSize
in interfaceSSLSession
-
-