Package org.mozilla.jss.ssl.javax
Class JSSSession
- java.lang.Object
-
- org.mozilla.jss.ssl.javax.JSSSession
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,javax.net.ssl.SSLSession
public class JSSSession extends java.lang.Object implements javax.net.ssl.SSLSession, java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JSSSession(JSSEngine engine, int buffer_size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getApplicationBufferSize()
SSLChannelInfo
getChannelInfo()
java.lang.String
getCipherSuite()
long
getCreationTime()
JSSEngine
getEngine()
long
getExpirationTime()
byte[]
getId()
long
getLastAccessedTime()
java.security.cert.Certificate[]
getLocalCertificates()
java.security.Principal
getLocalPrincipal()
int
getPacketBufferSize()
javax.security.cert.X509Certificate[]
getPeerCertificateChain()
java.security.cert.Certificate[]
getPeerCertificates()
java.lang.String
getPeerHost()
int
getPeerPort()
java.security.Principal
getPeerPrincipal()
SSLPreliminaryChannelInfo
getPreliminaryChannelInfo()
java.lang.String
getProtocol()
javax.net.ssl.SSLSessionContext
getSessionContext()
SSLCipher
getSSLCipher()
SSLVersion
getSSLVersion()
java.lang.Object
getValue(java.lang.String name)
java.lang.String[]
getValueNames()
void
invalidate()
boolean
isValid()
void
putValue(java.lang.String name, java.lang.Object value)
protected void
refreshData()
void
removeValue(java.lang.String name)
protected void
setCipherSuite(SSLCipher suite)
protected void
setCreationTime(long time)
protected void
setExpirationTime(long when)
protected void
setId(byte[] id)
protected void
setLastAccessedTime(long when)
protected void
setLocalCertificates(java.security.cert.Certificate[] certs)
protected void
setLocalPrincipal(java.security.Principal principal)
protected void
setPeerCertificateChain(javax.security.cert.X509Certificate[] chain)
protected void
setPeerCertificates(java.security.cert.Certificate[] new_certs)
void
setPeerHost(java.lang.String host)
void
setPeerPort(int port)
protected void
setPeerPrincipal(java.security.Principal principal)
protected void
setProtocol(SSLVersion protocol)
-
-
-
Constructor Detail
-
JSSSession
protected JSSSession(JSSEngine engine, int buffer_size)
-
-
Method Detail
-
getEngine
public JSSEngine getEngine()
-
getChannelInfo
public SSLChannelInfo getChannelInfo()
-
getPreliminaryChannelInfo
public SSLPreliminaryChannelInfo getPreliminaryChannelInfo()
-
getApplicationBufferSize
public int getApplicationBufferSize()
- Specified by:
getApplicationBufferSize
in interfacejavax.net.ssl.SSLSession
-
getPacketBufferSize
public int getPacketBufferSize()
- Specified by:
getPacketBufferSize
in interfacejavax.net.ssl.SSLSession
-
getId
public byte[] getId()
- Specified by:
getId
in interfacejavax.net.ssl.SSLSession
-
setId
protected void setId(byte[] id)
-
getSessionContext
public javax.net.ssl.SSLSessionContext getSessionContext()
- Specified by:
getSessionContext
in interfacejavax.net.ssl.SSLSession
-
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTime
in interfacejavax.net.ssl.SSLSession
-
setCreationTime
protected void setCreationTime(long time)
-
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTime
in interfacejavax.net.ssl.SSLSession
-
setLastAccessedTime
protected void setLastAccessedTime(long when)
-
getExpirationTime
public long getExpirationTime()
-
refreshData
protected void refreshData()
-
setExpirationTime
protected void setExpirationTime(long when)
-
isValid
public boolean isValid()
- Specified by:
isValid
in interfacejavax.net.ssl.SSLSession
-
invalidate
public void invalidate()
- Specified by:
invalidate
in interfacejavax.net.ssl.SSLSession
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
putValue
public void putValue(java.lang.String name, java.lang.Object value)
- Specified by:
putValue
in interfacejavax.net.ssl.SSLSession
-
getValue
public java.lang.Object getValue(java.lang.String name)
- Specified by:
getValue
in interfacejavax.net.ssl.SSLSession
-
removeValue
public void removeValue(java.lang.String name)
- Specified by:
removeValue
in interfacejavax.net.ssl.SSLSession
-
getValueNames
public java.lang.String[] getValueNames()
- Specified by:
getValueNames
in interfacejavax.net.ssl.SSLSession
-
getLocalCertificates
public java.security.cert.Certificate[] getLocalCertificates()
- Specified by:
getLocalCertificates
in interfacejavax.net.ssl.SSLSession
-
setLocalCertificates
protected void setLocalCertificates(java.security.cert.Certificate[] certs)
-
getPeerCertificates
public java.security.cert.Certificate[] getPeerCertificates()
- Specified by:
getPeerCertificates
in interfacejavax.net.ssl.SSLSession
-
setPeerCertificates
protected void setPeerCertificates(java.security.cert.Certificate[] new_certs)
-
getPeerCertificateChain
public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException
- Specified by:
getPeerCertificateChain
in interfacejavax.net.ssl.SSLSession
- Throws:
javax.net.ssl.SSLPeerUnverifiedException
-
setPeerCertificateChain
protected void setPeerCertificateChain(javax.security.cert.X509Certificate[] chain)
-
getPeerPrincipal
public java.security.Principal getPeerPrincipal()
- Specified by:
getPeerPrincipal
in interfacejavax.net.ssl.SSLSession
-
setPeerPrincipal
protected void setPeerPrincipal(java.security.Principal principal)
-
getLocalPrincipal
public java.security.Principal getLocalPrincipal()
- Specified by:
getLocalPrincipal
in interfacejavax.net.ssl.SSLSession
-
setLocalPrincipal
protected void setLocalPrincipal(java.security.Principal principal)
-
getCipherSuite
public java.lang.String getCipherSuite()
- Specified by:
getCipherSuite
in interfacejavax.net.ssl.SSLSession
-
getSSLCipher
public SSLCipher getSSLCipher()
-
setCipherSuite
protected void setCipherSuite(SSLCipher suite)
-
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocol
in interfacejavax.net.ssl.SSLSession
-
getSSLVersion
public SSLVersion getSSLVersion()
-
setProtocol
protected void setProtocol(SSLVersion protocol)
-
getPeerHost
public java.lang.String getPeerHost()
- Specified by:
getPeerHost
in interfacejavax.net.ssl.SSLSession
-
setPeerHost
public void setPeerHost(java.lang.String host)
-
getPeerPort
public int getPeerPort()
- Specified by:
getPeerPort
in interfacejavax.net.ssl.SSLSession
-
setPeerPort
public void setPeerPort(int port)
-
-