Interface OpenSslSession

All Superinterfaces:
javax.net.ssl.SSLSession
All Known Subinterfaces:
OpenSslInternalSession
All Known Implementing Classes:
ExtendedOpenSslSession, OpenSslSessionCache.NativeSslSession, ReferenceCountedOpenSslEngine.DefaultOpenSslSession

public interface OpenSslSession extends javax.net.ssl.SSLSession
SSLSession sub-type that is used by our native implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    default java.lang.String
    Returns the used named group or null if none was used or if it can't be determined.
     
    boolean
    Returns true if the peer has provided certificates during the handshake.

    Methods inherited from interface javax.net.ssl.SSLSession

    getApplicationBufferSize, getCipherSuite, getCreationTime, getId, getLastAccessedTime, getLocalCertificates, getLocalPrincipal, getPacketBufferSize, getPeerCertificateChain, getPeerCertificates, getPeerHost, getPeerPort, getPeerPrincipal, getProtocol, getValue, getValueNames, invalidate, isValid, putValue, removeValue
  • Method Details

    • hasPeerCertificates

      boolean hasPeerCertificates()
      Returns true if the peer has provided certificates during the handshake.

      This method is similar to SSLSession.getPeerCertificates() but it does not throw a SSLPeerUnverifiedException if no certs are provided, making it more efficient to check if a mTLS connection is used.

      Returns:
      true if peer certificates are available.
    • getNamedGroup

      default java.lang.String getNamedGroup()
      Returns the used named group or null if none was used or if it can't be determined.
      Returns:
      the named group
    • getSessionContext

      OpenSslSessionContext getSessionContext()
      Specified by:
      getSessionContext in interface javax.net.ssl.SSLSession