Class FacebookTokenAdapter
java.lang.Object
de.xima.fc.security.token.adapter.FacebookTokenAdapter
- All Implemented Interfaces:
ITokenAdapter
Token adapter for Facebook.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken(IAuthWebContext authWebContext) getAccessTokenHeader(IClientDescriptor clientDescriptor) getAccessTokenHeaderPrefix(IClientDescriptor clientDescriptor) getIdToken(IAuthWebContext authWebContext) getRefreshToken(IAuthWebContext authWebContext) Optional<org.pac4j.core.profile.UserProfile> getUserProfile(IAuthWebContext authWebContext) Returns the user profile associated with this token adapter.booleanisExpired(org.pac4j.core.profile.UserProfile profile) Optional<org.pac4j.core.profile.UserProfile> renewUserProfile(IAuthWebContext authWebContext)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
FacebookTokenAdapter
protected FacebookTokenAdapter()
-
-
Method Details
-
renewUserProfile
public Optional<org.pac4j.core.profile.UserProfile> renewUserProfile(IAuthWebContext authWebContext) throws org.pac4j.core.exception.TechnicalException - Throws:
org.pac4j.core.exception.TechnicalException
-
getAccessToken
- Returns:
- The access token
-
getRefreshToken
- Returns:
- The refresh token
-
isExpired
public boolean isExpired(org.pac4j.core.profile.UserProfile profile) - Specified by:
isExpiredin interfaceITokenAdapter- Returns:
- Whether the access_token of the profile is expired
-
getAccessTokenHeaderPrefix
- Specified by:
getAccessTokenHeaderPrefixin interfaceITokenAdapter- Returns:
- The access token header prefix for the given client descriptor.
-
getAccessTokenHeader
- Specified by:
getAccessTokenHeaderin interfaceITokenAdapter- Returns:
- The access token header for the given client descriptor.
-
getIdToken
- Specified by:
getIdTokenin interfaceITokenAdapter- Returns:
- The id token query parameter for the given client descriptor.
-
getUserProfile
Description copied from interface:ITokenAdapterReturns the user profile associated with this token adapter.- Specified by:
getUserProfilein interfaceITokenAdapter- Returns:
- An optional containing the user profile if it exists, otherwise empty.
-