Package io.netty.handler.ssl
Class ExtendedOpenSslSession
- java.lang.Object
-
- javax.net.ssl.ExtendedSSLSession
-
- io.netty.handler.ssl.ExtendedOpenSslSession
-
- All Implemented Interfaces:
OpenSslSession,javax.net.ssl.SSLSession
abstract class ExtendedOpenSslSession extends javax.net.ssl.ExtendedSSLSession implements OpenSslSession
Delegates all operations to a wrappedOpenSslSessionexcept the methods defined byExtendedSSLSessionitself.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]LOCAL_SUPPORTED_SIGNATURE_ALGORITHMSprivate OpenSslSessionwrapped
-
Constructor Summary
Constructors Constructor Description ExtendedOpenSslSession(OpenSslSession wrapped)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetApplicationBufferSize()java.lang.StringgetCipherSuite()longgetCreationTime()byte[]getId()longgetLastAccessedTime()java.security.cert.Certificate[]getLocalCertificates()java.security.PrincipalgetLocalPrincipal()java.lang.String[]getLocalSupportedSignatureAlgorithms()intgetPacketBufferSize()javax.security.cert.X509Certificate[]getPeerCertificateChain()java.security.cert.Certificate[]getPeerCertificates()java.lang.StringgetPeerHost()intgetPeerPort()java.security.PrincipalgetPeerPrincipal()java.lang.StringgetProtocol()abstract java.util.ListgetRequestedServerNames()javax.net.ssl.SSLSessionContextgetSessionContext()java.util.List<byte[]>getStatusResponses()java.lang.ObjectgetValue(java.lang.String s)java.lang.String[]getValueNames()voidhandshakeFinished()Finish the handshake and so init everything in theOpenSslSessionthat should be accessible by the user.voidinvalidate()booleanisValid()voidputValue(java.lang.String s, java.lang.Object o)voidremoveValue(java.lang.String s)voidtryExpandApplicationBufferSize(int packetLengthDataOnly)Expand (or increase) the value returned bySSLSession.getApplicationBufferSize()if necessary.
-
-
-
Field Detail
-
LOCAL_SUPPORTED_SIGNATURE_ALGORITHMS
private static final java.lang.String[] LOCAL_SUPPORTED_SIGNATURE_ALGORITHMS
-
wrapped
private final OpenSslSession wrapped
-
-
Constructor Detail
-
ExtendedOpenSslSession
ExtendedOpenSslSession(OpenSslSession wrapped)
-
-
Method Detail
-
getRequestedServerNames
public abstract java.util.List getRequestedServerNames()
- Overrides:
getRequestedServerNamesin classjavax.net.ssl.ExtendedSSLSession
-
getStatusResponses
public java.util.List<byte[]> getStatusResponses()
- Overrides:
getStatusResponsesin classjavax.net.ssl.ExtendedSSLSession
-
handshakeFinished
public final void handshakeFinished() throws javax.net.ssl.SSLExceptionDescription copied from interface:OpenSslSessionFinish the handshake and so init everything in theOpenSslSessionthat should be accessible by the user.- Specified by:
handshakeFinishedin interfaceOpenSslSession- Throws:
javax.net.ssl.SSLException
-
tryExpandApplicationBufferSize
public final void tryExpandApplicationBufferSize(int packetLengthDataOnly)
Description copied from interface:OpenSslSessionExpand (or increase) the value returned bySSLSession.getApplicationBufferSize()if necessary.This is only called in a synchronized block, so no need to use atomic operations.
- Specified by:
tryExpandApplicationBufferSizein interfaceOpenSslSession- Parameters:
packetLengthDataOnly- The packet size which exceeds the currentSSLSession.getApplicationBufferSize().
-
getLocalSupportedSignatureAlgorithms
public final java.lang.String[] getLocalSupportedSignatureAlgorithms()
- Specified by:
getLocalSupportedSignatureAlgorithmsin classjavax.net.ssl.ExtendedSSLSession
-
getId
public final byte[] getId()
- Specified by:
getIdin interfacejavax.net.ssl.SSLSession
-
getSessionContext
public final javax.net.ssl.SSLSessionContext getSessionContext()
- Specified by:
getSessionContextin interfacejavax.net.ssl.SSLSession
-
getCreationTime
public final long getCreationTime()
- Specified by:
getCreationTimein interfacejavax.net.ssl.SSLSession
-
getLastAccessedTime
public final long getLastAccessedTime()
- Specified by:
getLastAccessedTimein interfacejavax.net.ssl.SSLSession
-
invalidate
public final void invalidate()
- Specified by:
invalidatein interfacejavax.net.ssl.SSLSession
-
isValid
public final boolean isValid()
- Specified by:
isValidin interfacejavax.net.ssl.SSLSession
-
putValue
public final void putValue(java.lang.String s, java.lang.Object o)- Specified by:
putValuein interfacejavax.net.ssl.SSLSession
-
getValue
public final java.lang.Object getValue(java.lang.String s)
- Specified by:
getValuein interfacejavax.net.ssl.SSLSession
-
removeValue
public final void removeValue(java.lang.String s)
- Specified by:
removeValuein interfacejavax.net.ssl.SSLSession
-
getValueNames
public final java.lang.String[] getValueNames()
- Specified by:
getValueNamesin interfacejavax.net.ssl.SSLSession
-
getPeerCertificates
public final java.security.cert.Certificate[] getPeerCertificates() throws javax.net.ssl.SSLPeerUnverifiedException- Specified by:
getPeerCertificatesin interfacejavax.net.ssl.SSLSession- Throws:
javax.net.ssl.SSLPeerUnverifiedException
-
getLocalCertificates
public final java.security.cert.Certificate[] getLocalCertificates()
- Specified by:
getLocalCertificatesin interfacejavax.net.ssl.SSLSession
-
getPeerCertificateChain
public final javax.security.cert.X509Certificate[] getPeerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException- Specified by:
getPeerCertificateChainin interfacejavax.net.ssl.SSLSession- Throws:
javax.net.ssl.SSLPeerUnverifiedException
-
getPeerPrincipal
public final java.security.Principal getPeerPrincipal() throws javax.net.ssl.SSLPeerUnverifiedException- Specified by:
getPeerPrincipalin interfacejavax.net.ssl.SSLSession- Throws:
javax.net.ssl.SSLPeerUnverifiedException
-
getLocalPrincipal
public final java.security.Principal getLocalPrincipal()
- Specified by:
getLocalPrincipalin interfacejavax.net.ssl.SSLSession
-
getCipherSuite
public final java.lang.String getCipherSuite()
- Specified by:
getCipherSuitein interfacejavax.net.ssl.SSLSession
-
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocolin interfacejavax.net.ssl.SSLSession
-
getPeerHost
public final java.lang.String getPeerHost()
- Specified by:
getPeerHostin interfacejavax.net.ssl.SSLSession
-
getPeerPort
public final int getPeerPort()
- Specified by:
getPeerPortin interfacejavax.net.ssl.SSLSession
-
getPacketBufferSize
public final int getPacketBufferSize()
- Specified by:
getPacketBufferSizein interfacejavax.net.ssl.SSLSession
-
getApplicationBufferSize
public final int getApplicationBufferSize()
- Specified by:
getApplicationBufferSizein interfacejavax.net.ssl.SSLSession
-
-