Interface TokenStateManager

  • All Known Implementing Classes:
    DefaultTokenStateManager

    public interface TokenStateManager
    Authorization Code Flow Token State Manager. It converts the ID, access and refresh tokens returned in the authorization code grant response into a token state for OIDC Code AuthenticationMechanism to keep it as a session cookie. For example, default TokenStateManager concatenates all 3 tokens into a single String but does not persist it. Custom TokenStateManager may choose to keep the tokens in the external storage (DB, file system, etc) and return a reference to this storage.