Interface SessionProvider.JwtSessionProvider

All Superinterfaces:
SessionProvider
Enclosing interface:
SessionProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SessionProvider.JwtSessionProvider extends SessionProvider
An JWT based session provider. The JWT is sent to the backend to be able to track the authentication session.
  • Method Details

    • createBearer

      static SessionProvider.JwtSessionProvider createBearer(Jwt jwt)
      Returns a new JwtSessionProvider that uses the provided Jwt as a bearer token (see RFC 6750).
      Parameters:
      jwt - the Jwt
      Returns:
      a new JwtSessionProvider
    • jwt

      Jwt jwt()
      Returns the JWT.
      Returns:
      the JWT