Interface OpenSslSession
- All Superinterfaces:
SSLSession
SSLSession sub-type that is used by our native implementation.-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the peer has provided certificates during the handshake.Methods inherited from interface 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 aSSLPeerUnverifiedExceptionif no certs are provided, making it more efficient to check if a mTLS connection is used.- Returns:
- true if peer certificates are available.
-
getSessionContext
OpenSslSessionContext getSessionContext()- Specified by:
getSessionContextin interfaceSSLSession
-