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:
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Returns the normalized principal.

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

    getName, getTokenAttributes

    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

    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)
      Instantiates a new normalized jwt authentication token.
      Parameters:
      jwt - the jwt
      principal - the principal
      authorities - the authorities
  • Method Details

    • getPrincipal

      public NormalizedPrincipal getPrincipal()
      Description copied from interface: NormalizedAuthentication
      Returns the normalized principal.
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
      Specified by:
      getPrincipal in interface NormalizedAuthentication
      Overrides:
      getPrincipal in class org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.jwt.Jwt>
      Returns:
      the normalized principal