Package com.wolfssl.provider.jsse
Class WolfSSLImplementSSLSession
- java.lang.Object
-
- com.wolfssl.provider.jsse.WolfSSLImplementSSLSession
-
- All Implemented Interfaces:
javax.net.ssl.SSLSession
public class WolfSSLImplementSSLSession extends java.lang.Object implements javax.net.ssl.SSLSessionwolfSSL Session Note: suppress depreciation warning for javax.security.cert.X509Certificate- Author:
- wolfSSL
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanfromTablehas this session been registered
-
Constructor Summary
Constructors Constructor Description WolfSSLImplementSSLSession(WolfSSLAuthStore params)WolfSSLImplementSSLSession(WolfSSLSession in, int port, java.lang.String host, WolfSSLAuthStore params)WolfSSLImplementSSLSession(WolfSSLSession in, WolfSSLAuthStore params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetApplicationBufferSize()java.lang.StringgetCipherSuite()longgetCreationTime()byte[]getId()longgetLastAccessedTime()java.security.cert.Certificate[]getLocalCertificates()java.security.PrincipalgetLocalPrincipal()intgetPacketBufferSize()javax.security.cert.X509Certificate[]getPeerCertificateChain()java.security.cert.Certificate[]getPeerCertificates()java.lang.StringgetPeerHost()intgetPeerPort()java.security.PrincipalgetPeerPrincipal()java.lang.StringgetProtocol()javax.net.ssl.SSLSessionContextgetSessionContext()java.lang.ObjectgetValue(java.lang.String name)java.lang.String[]getValueNames()voidinvalidate()booleanisValid()voidputValue(java.lang.String name, java.lang.Object obj)voidremoveValue(java.lang.String name)protected voidresume(WolfSSLSession in)Takes in a new WOLFSSL object and sets the stored sessionprotected voidsetResume()Should be called on shutdown to save the session pointer
-
-
-
Constructor Detail
-
WolfSSLImplementSSLSession
public WolfSSLImplementSSLSession(WolfSSLSession in, int port, java.lang.String host, WolfSSLAuthStore params)
-
WolfSSLImplementSSLSession
public WolfSSLImplementSSLSession(WolfSSLSession in, WolfSSLAuthStore params)
-
WolfSSLImplementSSLSession
public WolfSSLImplementSSLSession(WolfSSLAuthStore params)
-
-
Method Detail
-
getId
public byte[] getId()
- Specified by:
getIdin interfacejavax.net.ssl.SSLSession
-
getSessionContext
public javax.net.ssl.SSLSessionContext getSessionContext()
- Specified by:
getSessionContextin interfacejavax.net.ssl.SSLSession
-
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTimein interfacejavax.net.ssl.SSLSession
-
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTimein interfacejavax.net.ssl.SSLSession
-
invalidate
public void invalidate()
- Specified by:
invalidatein interfacejavax.net.ssl.SSLSession
-
isValid
public boolean isValid()
- Specified by:
isValidin interfacejavax.net.ssl.SSLSession
-
putValue
public void putValue(java.lang.String name, java.lang.Object obj)- Specified by:
putValuein interfacejavax.net.ssl.SSLSession
-
getValue
public java.lang.Object getValue(java.lang.String name)
- Specified by:
getValuein interfacejavax.net.ssl.SSLSession
-
removeValue
public void removeValue(java.lang.String name)
- Specified by:
removeValuein interfacejavax.net.ssl.SSLSession
-
getValueNames
public java.lang.String[] getValueNames()
- Specified by:
getValueNamesin interfacejavax.net.ssl.SSLSession
-
getPeerCertificates
public java.security.cert.Certificate[] getPeerCertificates() throws javax.net.ssl.SSLPeerUnverifiedException- Specified by:
getPeerCertificatesin interfacejavax.net.ssl.SSLSession- Throws:
javax.net.ssl.SSLPeerUnverifiedException
-
getLocalCertificates
public java.security.cert.Certificate[] getLocalCertificates()
- Specified by:
getLocalCertificatesin interfacejavax.net.ssl.SSLSession
-
getPeerCertificateChain
public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException- Specified by:
getPeerCertificateChainin interfacejavax.net.ssl.SSLSession- Throws:
javax.net.ssl.SSLPeerUnverifiedException
-
getPeerPrincipal
public java.security.Principal getPeerPrincipal() throws javax.net.ssl.SSLPeerUnverifiedException- Specified by:
getPeerPrincipalin interfacejavax.net.ssl.SSLSession- Throws:
javax.net.ssl.SSLPeerUnverifiedException
-
getLocalPrincipal
public java.security.Principal getLocalPrincipal()
- Specified by:
getLocalPrincipalin interfacejavax.net.ssl.SSLSession
-
getCipherSuite
public 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 java.lang.String getPeerHost()
- Specified by:
getPeerHostin interfacejavax.net.ssl.SSLSession
-
getPeerPort
public int getPeerPort()
- Specified by:
getPeerPortin interfacejavax.net.ssl.SSLSession
-
getPacketBufferSize
public int getPacketBufferSize()
- Specified by:
getPacketBufferSizein interfacejavax.net.ssl.SSLSession
-
getApplicationBufferSize
public int getApplicationBufferSize()
- Specified by:
getApplicationBufferSizein interfacejavax.net.ssl.SSLSession
-
resume
protected void resume(WolfSSLSession in)
Takes in a new WOLFSSL object and sets the stored session- Parameters:
in- WOLFSSL session to set resume in
-
setResume
protected void setResume()
Should be called on shutdown to save the session pointer
-
-