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
ConstructorsConstructorDescriptionNormalizedJwtAuthenticationToken(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 TypeMethodDescription@NonNull Collection<Group> Gets groups.Returns the normalized principal.Methods inherited from class org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken
getName, getTokenAttributes, toBuilderMethods 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, toBuilderMethods inherited from interface org.bremersee.spring.security.core.NormalizedAuthentication
getGrantedAuthorityNames, getGroupNames, hasAnyGrantedAuthority, hasAnyGrantedAuthority, hasGrantedAuthority, isInAnyGroup, isInAnyGroup, isInGroup
-
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 jwtprincipal- the principalauthorities- the authoritiesgroups- the groups
-
-
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
-
getGroups
Description copied from interface:NormalizedAuthenticationGets groups.- Specified by:
getGroupsin interfaceNormalizedAuthentication- Returns:
- the groups
-