Class AuthenticationToken
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
com.sap.cloud.security.xsuaa.token.AuthenticationToken
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class AuthenticationToken
extends org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken
Internal class used to expose the
Token implementation as the
standard Principal for Spring Security Jwt handling.-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt, Collection<org.springframework.security.core.GrantedAuthority> authorities) -
Method Summary
Methods inherited from class org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken
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, toString
-
Constructor Details
-
AuthenticationToken
public AuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt, Collection<org.springframework.security.core.GrantedAuthority> authorities)
-
-
Method Details
-
getPrincipal
- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication- Overrides:
getPrincipalin classorg.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.jwt.Jwt>
-
getName
-