public class Auth2AuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
AbstractAuthenticationToken that represents an OAuth
2.0 Authentication.
The Authentication associates an UserDetails Principal to the
identifier of the Authorized Client, which
the End-User (Principal) granted authorization to so that it can access it's
protected resources at the UserInfo Endpoint.
AbstractAuthenticationToken,
Auth2DefaultRequest,
序列化表格| 构造器和说明 |
|---|
Auth2AuthenticationToken(Object principal,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
String providerId)
Constructs an
Auth2AuthenticationToken using the provided parameters. |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getCredentials() |
Object |
getPrincipal() |
String |
getProviderId()
返回第三方服务商 id, 如: qq, github
|
public Auth2AuthenticationToken(Object principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String providerId)
Auth2AuthenticationToken using the provided parameters.principal - the user Principal registered with the OAuth 2.0 Providerauthorities - the authorities granted to the userproviderId - the providerId
Authorized ClientCopyright © 2021. All rights reserved.