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
  • Field Summary

    Fields inherited from class com.github.scribejava.core.extractors.AbstractJsonExtractor

    OBJECT_MAPPER
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
     

    Methods inherited from class com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor

    extract, generateError

    Methods inherited from class com.github.scribejava.core.extractors.AbstractJsonExtractor

    extractRequiredParameter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WechatJsonExtractor

      protected WechatJsonExtractor()
  • Method Details

    • instance

      public static WechatJsonExtractor instance()
    • 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 class com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor