|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.provider.OAuth2Authentication
public class OAuth2Authentication
An OAuth 2 authentication token can contain two authentications: one for the client and one for the user. Since some OAuth authorization grants don't require user authentication, the user authentication may be null.
| 构造方法摘要 | |
|---|---|
OAuth2Authentication(OAuth2Request clientAuthentication,
org.springframework.security.core.Authentication userAuthentication)
Construct an OAuth 2 authentication. |
|
| 方法摘要 | |
|---|---|
boolean |
equals(Object o)
|
Object |
getCredentials()
|
OAuth2Request |
getOAuth2Request()
The authorization request containing details of the client application. |
Object |
getPrincipal()
|
org.springframework.security.core.Authentication |
getUserAuthentication()
The user authentication. |
int |
hashCode()
|
boolean |
isAuthenticated()
|
boolean |
isClientOnly()
Convenience method to check if there is a user associated with this token, or just a client application. |
| 从类 org.springframework.security.authentication.AbstractAuthenticationToken 继承的方法 |
|---|
eraseCredentials, getAuthorities, getDetails, getName, setAuthenticated, setDetails, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public OAuth2Authentication(OAuth2Request clientAuthentication,
org.springframework.security.core.Authentication userAuthentication)
authorizationRequest - The authorization request (must not be null).userAuthentication - The user authentication (possibly null).| 方法详细信息 |
|---|
public Object getCredentials()
public Object getPrincipal()
public boolean isClientOnly()
public OAuth2Request getOAuth2Request()
public org.springframework.security.core.Authentication getUserAuthentication()
public boolean isAuthenticated()
org.springframework.security.core.Authentication 中的 isAuthenticatedorg.springframework.security.authentication.AbstractAuthenticationToken 中的 isAuthenticatedpublic boolean equals(Object o)
Principal 中的 equalsorg.springframework.security.authentication.AbstractAuthenticationToken 中的 equalspublic int hashCode()
Principal 中的 hashCodeorg.springframework.security.authentication.AbstractAuthenticationToken 中的 hashCode
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||