Class NormalizedJwtAuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.jwt.Jwt>
org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken
org.bremersee.spring.security.oauth2.server.resource.authentication.NormalizedJwtAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, NormalizedAuthentication, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

@Transient public class NormalizedJwtAuthenticationToken extends org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken implements NormalizedAuthentication
The normalized jwt authentication token.
Author:
Christian Bremer
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken

    org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken.Builder<B extends org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken.Builder<B>>

    Nested classes/interfaces inherited from class org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken

    org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<T extends org.springframework.security.oauth2.core.OAuth2Token,B extends org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<T,B>>

    Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>

    Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication

    org.springframework.security.core.Authentication.Builder<B extends org.springframework.security.core.Authentication.Builder<B>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    NormalizedJwtAuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt, NormalizedPrincipal principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Collection<Group> groups)
    Instantiates a new normalized jwt authentication token.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Collection<Group>
    Gets groups.
    Returns the normalized principal.

    Methods inherited from class org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken

    getName, getTokenAttributes, toBuilder

    Methods inherited from class org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken

    getCredentials, getToken

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.security.core.Authentication

    getAuthorities, getCredentials, getDetails, isAuthenticated, setAuthenticated, toBuilder

    Methods inherited from interface java.security.Principal

    equals, getName, hashCode, implies, toString
  • Constructor Details

    • NormalizedJwtAuthenticationToken

      public NormalizedJwtAuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt, NormalizedPrincipal principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Collection<Group> groups)
      Instantiates a new normalized jwt authentication token.
      Parameters:
      jwt - the jwt
      principal - the principal
      authorities - the authorities
      groups - the groups
  • Method Details