Package org.pac4j.scribe.extractors
Class WechatJsonExtractor
java.lang.Object
com.github.scribejava.core.extractors.AbstractJsonExtractor
com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor
org.pac4j.scribe.extractors.WechatJsonExtractor
- All Implemented Interfaces:
com.github.scribejava.core.extractors.TokenExtractor<com.github.scribejava.core.model.OAuth2AccessToken>
public class WechatJsonExtractor
extends com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor
This class represents a specific JSON extractor for Wechat Connect using OAuth protocol version 2.
It could be part of the Scribe library.
- Since:
- 3.1.0
- Author:
- zhangzhenli
-
Field Summary
Fields inherited from class com.github.scribejava.core.extractors.AbstractJsonExtractor
OBJECT_MAPPER
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for WechatJsonExtractor. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.github.scribejava.core.model.OAuth2AccessToken
createToken
(String accessToken, String tokenType, Integer expiresIn, String refreshToken, String scope, com.fasterxml.jackson.databind.JsonNode response, String rawResponse) static WechatJsonExtractor
instance()
instance.Methods inherited from class com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor
extract, generateError
Methods inherited from class com.github.scribejava.core.extractors.AbstractJsonExtractor
extractRequiredParameter
-
Constructor Details
-
WechatJsonExtractor
protected WechatJsonExtractor()Constructor for WechatJsonExtractor.
-
-
Method Details
-
instance
instance.
- Returns:
- a
WechatJsonExtractor
object
-
createToken
protected com.github.scribejava.core.model.OAuth2AccessToken createToken(String accessToken, String tokenType, Integer expiresIn, String refreshToken, String scope, com.fasterxml.jackson.databind.JsonNode response, String rawResponse) - Overrides:
createToken
in classcom.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor
-