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
ConstructorsConstructorDescriptionNormalizedJwtAuthenticationToken(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 TypeMethodDescriptionReturns the normalized principal.Methods inherited from class org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken
getName, getTokenAttributesMethods inherited from class org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken
getCredentials, getTokenMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.security.core.Authentication
getAuthorities, getCredentials, getDetails, isAuthenticated, setAuthenticated
-
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 jwtprincipal- the principalauthorities- the authorities
-
-
Method Details
-
getPrincipal
Description copied from interface:NormalizedAuthenticationReturns the normalized principal.- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication- Specified by:
getPrincipalin interfaceNormalizedAuthentication- Overrides:
getPrincipalin classorg.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.jwt.Jwt>- Returns:
- the normalized principal
-