Class TlsServerEngine

    • Method Detail

      • setServerMessageSender

        public void setServerMessageSender​(ServerMessageSender serverMessageSender)
      • getServerExtensions

        public java.util.List<Extension> getServerExtensions()
      • addServerExtensions

        public void addServerExtensions​(Extension extension)
      • setSelectedApplicationLayerProtocol

        public void setSelectedApplicationLayerProtocol​(java.lang.String applicationProtocol)
      • setSessionData

        public void setSessionData​(byte[] additionalSessionData)
        Set (other layer's) session data for this session. When this session is resumed (with a session ticket), this data will be provided to the session data verification callback, which enables the application layer to accept or deny the session resumption based on the data stored in the session. For example, with QUIC this is used to store the QUIC version in the session data, so when the session is resumed, the QUIC layer can verify the same QUIC version is used.
        Parameters:
        additionalSessionData -
      • setSessionDataVerificationCallback

        public void setSessionDataVerificationCallback​(java.util.function.Function<java.nio.ByteBuffer,​java.lang.Boolean> callback)
        Set the callback that is called before a session is (successfully) resumed. If there is no data associated with the session, the callback is not called and verification is assumed to be successful, i.e. the session will be resumed.
        Parameters:
        callback - the callback that is called with the stored session data; when the callback returns false the session will not be resumed.