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.More info at: WeChat login development guide
- Since:
- 3.1.0
- Author:
- zhangzhenli
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WechatJsonExtractor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.github.scribejava.core.model.OAuth2AccessToken
createToken(java.lang.String accessToken, java.lang.String tokenType, java.lang.Integer expiresIn, java.lang.String refreshToken, java.lang.String scope, com.fasterxml.jackson.databind.JsonNode response, java.lang.String rawResponse)
static WechatJsonExtractor
instance()
-
Methods inherited from class com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor
extract, generateError
-
-
-
-
Method Detail
-
instance
public static WechatJsonExtractor instance()
-
createToken
protected com.github.scribejava.core.model.OAuth2AccessToken createToken(java.lang.String accessToken, java.lang.String tokenType, java.lang.Integer expiresIn, java.lang.String refreshToken, java.lang.String scope, com.fasterxml.jackson.databind.JsonNode response, java.lang.String rawResponse)
- Overrides:
createToken
in classcom.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor
-
-