类 AbstractOauth
java.lang.Object
com.publiccms.common.base.oauth.AbstractOauth
- 所有已实现的接口:
Config,Container<String>,OauthGateway
AbstractOauth
-
字段概要
字段修饰符和类型字段说明protected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected ConfigDataComponentprotected static final org.apache.http.impl.client.CloseableHttpClientprotected final org.apache.commons.logging.Logprotected String从接口继承的字段 com.publiccms.common.api.Config
CONFIG_CODE_DESCRIPTION_SUFFIX, CONFIGPREFIX, INPUT_TYPE_EDITORS, INPUT_TYPE_FILES, INPUT_TYPE_PRIVATE_FILES, INPUTTYPE_BOOLEAN, INPUTTYPE_CAPTCHA, INPUTTYPE_CATEGORY, INPUTTYPE_CATEGORY_PATH, INPUTTYPE_CATEGORYTYPE, INPUTTYPE_COLOR, INPUTTYPE_CONTENT, INPUTTYPE_CONTENT_STATUS, INPUTTYPE_DATE, INPUTTYPE_DATETIME, INPUTTYPE_DEPT, INPUTTYPE_DICTIONARY, INPUTTYPE_EMAIL, INPUTTYPE_FILE, INPUTTYPE_FONT, INPUTTYPE_IMAGE, INPUTTYPE_KEYVALUE, INPUTTYPE_KEYWORDS, INPUTTYPE_LANG, INPUTTYPE_MODULE, INPUTTYPE_NUMBER, INPUTTYPE_PASSWORD, INPUTTYPE_POSITION, INPUTTYPE_PRIVATEFILE, INPUTTYPE_PRIVATEIMAGE, INPUTTYPE_PRIVATEVIDEO, INPUTTYPE_SENSITIVEWORDS, INPUTTYPE_SURVEY, INPUTTYPE_TAG, INPUTTYPE_TAGTYPE, INPUTTYPE_TEMPLATE, INPUTTYPE_TEXT, INPUTTYPE_TEXTAREA, INPUTTYPE_TIME, INPUTTYPE_USER, INPUTTYPE_VIDEO, INPUTTYPE_VOTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanenabled(short siteId) protected Stringabstract OauthAccessgetAccessToken(short siteId, String code) getAuthorizeUrl(short siteId, String state) getCode(short siteId, boolean showAll) getCodeDescription(Locale locale) protected OauthConfiggetConfig(short siteId) getExtendFieldList(SysSite site, Locale locale) protected String从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.publiccms.common.api.Config
exportable, getCode, getMessage从接口继承的方法 com.publiccms.common.api.oauth.OauthGateway
getAuthorizeUrl, getOpenId, getUserInfo, keyFunction
-
字段详细资料
-
CONFIG_CODE
- 另请参阅:
-
CONFIG_APP_KEY
- 另请参阅:
-
CONFIG_APP_SECRET
- 另请参阅:
-
CONFIG_RETURN_URL
- 另请参阅:
-
CONFIG_CODE_DESCRIPTION
-
configDataConponent
-
httpclient
protected static final org.apache.http.impl.client.CloseableHttpClient httpclient -
log
protected final org.apache.commons.logging.Log log -
channel
-
prefix
-
-
构造器详细资料
-
AbstractOauth
- 参数:
channel-
-
-
方法详细资料
-
getChannel
- 指定者:
getChannel在接口中OauthGateway- 返回:
- channel
-
enabled
public boolean enabled(short siteId) - 指定者:
enabled在接口中OauthGateway- 参数:
siteId-- 返回:
- enabled
-
getConfig
- 参数:
siteId-- 返回:
-
get
- 抛出:
IOException
-
post
- 抛出:
IOException
-
getAuthorizeUrl
- 指定者:
getAuthorizeUrl在接口中OauthGateway- 参数:
siteId-state-- 返回:
- authorize url
-
getOpenId
- 指定者:
getOpenId在接口中OauthGateway- 参数:
siteId-code-- 返回:
- oauth access
- 抛出:
IOException
-
getAccessToken
- 参数:
siteId-code-- 返回:
- access token
- 抛出:
IOException
-
getCode
-
getCodeDescription
- 指定者:
getCodeDescription在接口中Config- 参数:
locale-- 返回:
-
getExtendFieldList
- 指定者:
getExtendFieldList在接口中Config- 参数:
site-locale-- 返回:
- config extend field list
-