Interface JwtAuthenticationStore

All Known Implementing Classes:
SimpleJwtAuthenticationStore

public interface JwtAuthenticationStore
An authentication store for Jwt, authentication provider implements this extension point to store enough information in JWT claim so that later on when the token verification happens, using this same claims this authentication object can be re-created.
Author:
Vivek Pandey
See Also:
  • Authentication
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.Authentication
    Given JWT claim give the authentication object
    void
    store(org.springframework.security.core.Authentication authentication, Map<String,Object> claims)
    Store authentication related information in JWT claims
  • Method Details

    • getAuthentication

      org.springframework.security.core.Authentication getAuthentication(Map<String,Object> claims)
      Given JWT claim give the authentication object
      Parameters:
      claims - JWT claim
      Returns:
      Authentication object, always non-null
    • store

      void store(org.springframework.security.core.Authentication authentication, Map<String,Object> claims)
      Store authentication related information in JWT claims
      Parameters:
      claims - JWT claim