Class AbstractTlsServer

    • Field Detail

      • offeredCipherSuites

        protected int[] offeredCipherSuites
        Deprecated.
      • offeredCompressionMethods

        protected short[] offeredCompressionMethods
        Deprecated.
      • clientExtensions

        protected java.util.Hashtable clientExtensions
        Deprecated.
      • encryptThenMACOffered

        protected boolean encryptThenMACOffered
        Deprecated.
      • maxFragmentLengthOffered

        protected short maxFragmentLengthOffered
        Deprecated.
      • truncatedHMacOffered

        protected boolean truncatedHMacOffered
        Deprecated.
      • supportedSignatureAlgorithms

        protected java.util.Vector supportedSignatureAlgorithms
        Deprecated.
      • eccCipherSuitesOffered

        protected boolean eccCipherSuitesOffered
        Deprecated.
      • namedCurves

        protected int[] namedCurves
        Deprecated.
      • clientECPointFormats

        protected short[] clientECPointFormats
        Deprecated.
      • serverECPointFormats

        protected short[] serverECPointFormats
        Deprecated.
      • selectedCipherSuite

        protected int selectedCipherSuite
        Deprecated.
      • selectedCompressionMethod

        protected short selectedCompressionMethod
        Deprecated.
      • serverExtensions

        protected java.util.Hashtable serverExtensions
        Deprecated.
    • Constructor Detail

      • AbstractTlsServer

        public AbstractTlsServer()
        Deprecated.
      • AbstractTlsServer

        public AbstractTlsServer​(TlsCipherFactory cipherFactory)
        Deprecated.
    • Method Detail

      • allowEncryptThenMAC

        protected boolean allowEncryptThenMAC()
        Deprecated.
      • allowTruncatedHMac

        protected boolean allowTruncatedHMac()
        Deprecated.
      • checkServerExtensions

        protected java.util.Hashtable checkServerExtensions()
        Deprecated.
      • getCipherSuites

        protected abstract int[] getCipherSuites()
        Deprecated.
      • getCompressionMethods

        protected short[] getCompressionMethods()
        Deprecated.
      • getMaximumVersion

        protected ProtocolVersion getMaximumVersion()
        Deprecated.
      • getMinimumVersion

        protected ProtocolVersion getMinimumVersion()
        Deprecated.
      • supportsClientECCCapabilities

        protected boolean supportsClientECCCapabilities​(int[] namedCurves,
                                                        short[] ecPointFormats)
        Deprecated.
      • notifyClientVersion

        public void notifyClientVersion​(ProtocolVersion clientVersion)
                                 throws java.io.IOException
        Deprecated.
        Specified by:
        notifyClientVersion in interface TlsServer
        Throws:
        java.io.IOException
      • notifyFallback

        public void notifyFallback​(boolean isFallback)
                            throws java.io.IOException
        Deprecated.
        Specified by:
        notifyFallback in interface TlsServer
        Throws:
        java.io.IOException
      • notifyOfferedCipherSuites

        public void notifyOfferedCipherSuites​(int[] offeredCipherSuites)
                                       throws java.io.IOException
        Deprecated.
        Specified by:
        notifyOfferedCipherSuites in interface TlsServer
        Throws:
        java.io.IOException
      • notifyOfferedCompressionMethods

        public void notifyOfferedCompressionMethods​(short[] offeredCompressionMethods)
                                             throws java.io.IOException
        Deprecated.
        Specified by:
        notifyOfferedCompressionMethods in interface TlsServer
        Throws:
        java.io.IOException
      • processClientExtensions

        public void processClientExtensions​(java.util.Hashtable clientExtensions)
                                     throws java.io.IOException
        Deprecated.
        Specified by:
        processClientExtensions in interface TlsServer
        Throws:
        java.io.IOException
      • getSelectedCipherSuite

        public int getSelectedCipherSuite()
                                   throws java.io.IOException
        Deprecated.
        Specified by:
        getSelectedCipherSuite in interface TlsServer
        Throws:
        java.io.IOException
      • getSelectedCompressionMethod

        public short getSelectedCompressionMethod()
                                           throws java.io.IOException
        Deprecated.
        Specified by:
        getSelectedCompressionMethod in interface TlsServer
        Throws:
        java.io.IOException
      • getServerExtensions

        public java.util.Hashtable getServerExtensions()
                                                throws java.io.IOException
        Deprecated.
        Specified by:
        getServerExtensions in interface TlsServer
        Throws:
        java.io.IOException
      • getServerSupplementalData

        public java.util.Vector getServerSupplementalData()
                                                   throws java.io.IOException
        Deprecated.
        Specified by:
        getServerSupplementalData in interface TlsServer
        Throws:
        java.io.IOException
      • getCertificateStatus

        public CertificateStatus getCertificateStatus()
                                               throws java.io.IOException
        Deprecated.
        Description copied from interface: TlsServer
        This method will be called (only) if the server included an extension of type "status_request" with empty "extension_data" in the extended server hello. See RFC 3546 3.6. Certificate Status Request. If a non-null CertificateStatus is returned, it is sent to the client as a handshake message of type "certificate_status".
        Specified by:
        getCertificateStatus in interface TlsServer
        Returns:
        A CertificateStatus to be sent to the client (or null for none).
        Throws:
        java.io.IOException
      • processClientSupplementalData

        public void processClientSupplementalData​(java.util.Vector clientSupplementalData)
                                           throws java.io.IOException
        Deprecated.
        Specified by:
        processClientSupplementalData in interface TlsServer
        Throws:
        java.io.IOException
      • notifyClientCertificate

        public void notifyClientCertificate​(Certificate clientCertificate)
                                     throws java.io.IOException
        Deprecated.
        Description copied from interface: TlsServer
        Called by the protocol handler to report the client certificate, only if TlsServer.getCertificateRequest() returned non-null. Note: this method is responsible for certificate verification and validation.
        Specified by:
        notifyClientCertificate in interface TlsServer
        Parameters:
        clientCertificate - the effective client certificate (may be an empty chain).
        Throws:
        java.io.IOException
      • getCompression

        public TlsCompression getCompression()
                                      throws java.io.IOException
        Deprecated.
        Specified by:
        getCompression in interface TlsPeer
        Throws:
        java.io.IOException
      • getCipher

        public TlsCipher getCipher()
                            throws java.io.IOException
        Deprecated.
        Specified by:
        getCipher in interface TlsPeer
        Throws:
        java.io.IOException
      • getNewSessionTicket

        public NewSessionTicket getNewSessionTicket()
                                             throws java.io.IOException
        Deprecated.
        Description copied from interface: TlsServer
        RFC 5077 3.3. NewSessionTicket Handshake Message.

        This method will be called (only) if a NewSessionTicket extension was sent by the server. See RFC 5077 4. Recommended Ticket Construction for recommended format and protection.

        Specified by:
        getNewSessionTicket in interface TlsServer
        Returns:
        The ticket.
        Throws:
        java.io.IOException