Class 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 Detail

      • JSSSession

        protected JSSSession​(JSSEngine engine,
                             int buffer_size)
    • Method Detail

      • getApplicationBufferSize

        public int getApplicationBufferSize()
        Specified by:
        getApplicationBufferSize in interface javax.net.ssl.SSLSession
      • getPacketBufferSize

        public int getPacketBufferSize()
        Specified by:
        getPacketBufferSize in interface javax.net.ssl.SSLSession
      • getId

        public byte[] getId()
        Specified by:
        getId in interface javax.net.ssl.SSLSession
      • setId

        protected void setId​(byte[] id)
      • getSessionContext

        public javax.net.ssl.SSLSessionContext getSessionContext()
        Specified by:
        getSessionContext in interface javax.net.ssl.SSLSession
      • getCreationTime

        public long getCreationTime()
        Specified by:
        getCreationTime in interface javax.net.ssl.SSLSession
      • setCreationTime

        protected void setCreationTime​(long time)
      • getLastAccessedTime

        public long getLastAccessedTime()
        Specified by:
        getLastAccessedTime in interface javax.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 interface javax.net.ssl.SSLSession
      • invalidate

        public void invalidate()
        Specified by:
        invalidate in interface javax.net.ssl.SSLSession
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • putValue

        public void putValue​(java.lang.String name,
                             java.lang.Object value)
        Specified by:
        putValue in interface javax.net.ssl.SSLSession
      • getValue

        public java.lang.Object getValue​(java.lang.String name)
        Specified by:
        getValue in interface javax.net.ssl.SSLSession
      • removeValue

        public void removeValue​(java.lang.String name)
        Specified by:
        removeValue in interface javax.net.ssl.SSLSession
      • getValueNames

        public java.lang.String[] getValueNames()
        Specified by:
        getValueNames in interface javax.net.ssl.SSLSession
      • getLocalCertificates

        public java.security.cert.Certificate[] getLocalCertificates()
        Specified by:
        getLocalCertificates in interface javax.net.ssl.SSLSession
      • setLocalCertificates

        protected void setLocalCertificates​(java.security.cert.Certificate[] certs)
      • getPeerCertificates

        public java.security.cert.Certificate[] getPeerCertificates()
        Specified by:
        getPeerCertificates in interface javax.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 interface javax.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 interface javax.net.ssl.SSLSession
      • setPeerPrincipal

        protected void setPeerPrincipal​(java.security.Principal principal)
      • getLocalPrincipal

        public java.security.Principal getLocalPrincipal()
        Specified by:
        getLocalPrincipal in interface javax.net.ssl.SSLSession
      • setLocalPrincipal

        protected void setLocalPrincipal​(java.security.Principal principal)
      • getCipherSuite

        public java.lang.String getCipherSuite()
        Specified by:
        getCipherSuite in interface javax.net.ssl.SSLSession
      • getSSLCipher

        public SSLCipher getSSLCipher()
      • setCipherSuite

        protected void setCipherSuite​(SSLCipher suite)
      • getProtocol

        public java.lang.String getProtocol()
        Specified by:
        getProtocol in interface javax.net.ssl.SSLSession
      • getSSLVersion

        public SSLVersion getSSLVersion()
      • setProtocol

        protected void setProtocol​(SSLVersion protocol)
      • getPeerHost

        public java.lang.String getPeerHost()
        Specified by:
        getPeerHost in interface javax.net.ssl.SSLSession
      • setPeerHost

        public void setPeerHost​(java.lang.String host)
      • getPeerPort

        public int getPeerPort()
        Specified by:
        getPeerPort in interface javax.net.ssl.SSLSession
      • setPeerPort

        public void setPeerPort​(int port)