Class SessionContextSettings

    • Method Detail

      • getUrl

        @NotNull
        public @NotNull URL getUrl()
        Returns the URL of the server.
        Returns:
        The URL of the server.
      • getTlsContext

        @Nullable
        public @Nullable TLSContext getTlsContext()

        Returns the TLSContext for Sessions.
        A TLSContext allows to send requests to the server via secured HTTPS connections.

        Returns:
        The TLSContext, that shall be used.
      • getSkewTime

        public int getSkewTime()

        Returns a skew time for the token refresh of Sessions.
        The skew time helps to avoid using expired authorization tokens. The returned value (in seconds) is subtracted from the expiry time to avoid issues possibly caused by transfer delays.
        It can not be guaranteed, but is recommended, that custom implementations of AuthProvider handle this accordingly.

        Returns:
        The skew time in seconds, that shall be used.