Package io.jmix.oidc.jwt
Class JmixJwtAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
io.jmix.oidc.jwt.JmixJwtAuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class JmixJwtAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
An implementation of an AbstractOAuth2TokenAuthenticationToken representing a Jwt Authentication.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected JmixOidcUser
protected org.springframework.security.oauth2.jwt.Jwt
-
Constructor Summary
ConstructorDescriptionJmixJwtAuthenticationToken
(org.springframework.security.oauth2.jwt.Jwt jwt, JmixOidcUser principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Constructs aJmixJwtAuthenticationToken
using the provided parameters. -
Method Summary
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
Field Details
-
principal
-
token
protected org.springframework.security.oauth2.jwt.Jwt token
-
-
Constructor Details
-
JmixJwtAuthenticationToken
public JmixJwtAuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt, JmixOidcUser principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Constructs aJmixJwtAuthenticationToken
using the provided parameters.- Parameters:
jwt
- the JWTprincipal
- the principal being authenticatedauthorities
- the authorities assigned to the JWT
-
-
Method Details