T - OpenidClaimSet or any specialization. See public class OAuthentication<T extends Map<String,Object> & Serializable>
extends org.springframework.security.authentication.AbstractAuthenticationToken
implements org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
| Constructor and Description |
|---|
OAuthentication(T claims,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
String tokenString) |
| Modifier and Type | Method and Description |
|---|---|
T |
getAttributes() |
String |
getBearerHeader() |
T |
getClaims() |
T |
getCredentials() |
T |
getPrincipal() |
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic OAuthentication(T claims, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String tokenString)
claims - claim-set of any-typeauthorities - tokenString - original encoded Bearer string (in case resource-server needs to forward user ID to secured micro-services)public T getCredentials()
getCredentials in interface org.springframework.security.core.Authenticationpublic T getPrincipal()
getPrincipal in interface org.springframework.security.core.Authenticationpublic T getAttributes()
getAttributes in interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipalpublic T getClaims()
public String getBearerHeader()
Copyright © 2022. All rights reserved.