Interface SecureTokenService

All Known Implementing Classes:
SecureTokenServiceImpl

public interface SecureTokenService
Produces and manages SecureTokens
  • Field Details

  • Method Details

    • generate

      @NotNull @NotNull SecureToken generate(@NotNull @NotNull Key key)
      Generates a SecureToken for a given Key
      Parameters:
      key -
      Returns:
      secureToken
    • isValid

      boolean isValid(@NotNull @NotNull SecureToken tokenToValidate)
      Checks if the given SecureToken is valid
      Parameters:
      tokenToValidate -
      Returns:
      valid
    • isValid

      boolean isValid(@NotNull @NotNull SecureToken tokenToValidate, @NotNull @NotNull Key key)
      Checks if the given SecureToken is valid for given Key
      Parameters:
      tokenToValidate -
      key -
      Returns:
      valid
    • invalidate

      void invalidate(@NotNull @NotNull Key key)
      Invalidates the SecureToken for the given Key
      Parameters:
      key -
    • restoreState

      void restoreState()