Class AbstractAuthenticationEntryPoint
java.lang.Object
com.flyfish.oauth.entry.AbstractAuthenticationEntryPoint
- All Implemented Interfaces:
AuthenticationEntryPoint
- Direct Known Subclasses:
CodeAuthenticationEntryPoint, ScribeAuthenticationEntryPoint
public abstract class AbstractAuthenticationEntryPoint
extends Object
implements AuthenticationEntryPoint
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckAccessToken(String accessToken) 检查accessToken的有效性,以确定是否需要跳转登录getAccessToken(String code, String grantType, String redirect) 根据授权码和鉴权类型获取授权信息getUserInfo(String accessToken) 通过AccessToken查询用户数据Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuthenticationEntryPoint
configure, getAccessToken, getClientToken, getProperties, logout, redirectUrl, refreshAccessToken
-
Field Details
-
AUTH_HEADER
- See Also:
-
-
Constructor Details
-
AbstractAuthenticationEntryPoint
public AbstractAuthenticationEntryPoint()
-
-
Method Details
-
checkAccessToken
Description copied from interface:AuthenticationEntryPoint检查accessToken的有效性,以确定是否需要跳转登录- Specified by:
checkAccessTokenin interfaceAuthenticationEntryPoint- Parameters:
accessToken- 访问令牌- Returns:
- 结果
-
getAccessToken
Description copied from interface:AuthenticationEntryPoint根据授权码和鉴权类型获取授权信息- Specified by:
getAccessTokenin interfaceAuthenticationEntryPoint- Parameters:
code- 授权grantType- 鉴权类型redirect- 额外的跳转- Returns:
- 获取用户信息
-
getUserInfo
Description copied from interface:AuthenticationEntryPoint通过AccessToken查询用户数据- Specified by:
getUserInfoin interfaceAuthenticationEntryPoint- Parameters:
accessToken- token信息
-