Interface NonceHolder

All Superinterfaces:
AutoCloseable

public interface NonceHolder extends AutoCloseable
Keeps the current nonce for a request. Make sure that the close() method is always invoked, otherwise the related Session will be blocked.

This object is for internal use only.

Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the NonceHolder.
    Gets the last base64 encoded nonce, or null if the session is new.
    void
    Sets the base64 encoded nonce received by the server.
  • Method Details

    • getNonce

      @Nullable String getNonce()
      Gets the last base64 encoded nonce, or null if the session is new.
    • setNonce

      void setNonce(@Nullable String nonce)
      Sets the base64 encoded nonce received by the server.
    • close

      void close()
      Closes the NonceHolder. Must be invoked!
      Specified by:
      close in interface AutoCloseable