本文整理汇总了Java中org.scribe.model.SignatureType.Header方法的典型用法代码示例。如果您正苦于以下问题:Java SignatureType.Header方法的具体用法?Java SignatureType.Header怎么用?Java SignatureType.Header使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.scribe.model.SignatureType
的用法示例。
在下文中一共展示了SignatureType.Header方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: internalInit
import org.scribe.model.SignatureType; //导入方法依赖的package包/类
@Override
protected void internalInit() {
super.internalInit();
this.api20 = new TencentApi();
String theScope = StringUtils.isNotBlank(this.scope) ? this.scope : null;
final OAuthConfig conf = new OAuthConfig(this.key, this.secret,
this.callbackUrl, SignatureType.Header, theScope, null);
this.service = new TencentOAuth20ServiceImpl(this.api20, conf);
}
示例2: internalInit
import org.scribe.model.SignatureType; //导入方法依赖的package包/类
@Override
protected void internalInit() {
super.internalInit();
this.scopeValue = "";
this.service = new ProxyOAuthFIWARE(new FIWAREApi(this.serverURL),
new OAuthConfig(this.key, this.secret,
this.callbackUrl,
SignatureType.Header,
this.scopeValue, null),
this.connectTimeout, this.readTimeout, this.proxyHost,
this.proxyPort, false, true);
}
示例3: internalInit
import org.scribe.model.SignatureType; //导入方法依赖的package包/类
@Override
protected void internalInit() {
super.internalInit();
this.scopeValue = "";
this.service = new ProxyOAuthFIWARE(new FIWAREApi(this.serverURL),
new OAuthConfig(this.key, this.secret,
this.callbackUrl,
SignatureType.Header,
this.scopeValue, null),
this.connectTimeout, this.readTimeout, this.proxyHost,
this.proxyPort, false, true);
}
示例4: internalInit
import org.scribe.model.SignatureType; //导入方法依赖的package包/类
@Override
protected void internalInit() {
super.internalInit();
this.scopeValue = "";
this.service = new ProxyOAuthFIWARE(new FIWAREApi(this.serverURL),
new OAuthConfig(this.key, this.secret,
this.callbackUrl,
SignatureType.Header,
this.scopeValue, null),
this.connectTimeout, this.readTimeout, this.proxyHost,
this.proxyPort, false, true);
}
示例5: internalInit
import org.scribe.model.SignatureType; //导入方法依赖的package包/类
protected void internalInit() {
super.internalInit();
String url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_userinfo&state=WeiXinClientOauth#wechat_redirect";
WeiXinApi20 api = new WeiXinApi20(url);
this.service = new WeiXinOAuth20ServiceImpl(api, new OAuthConfig(this.key, this.secret, this.callbackUrl, SignatureType.Header, null, null),
this.connectTimeout, this.readTimeout, this.proxyHost, this.proxyPort); }
示例6: internalInit
import org.scribe.model.SignatureType; //导入方法依赖的package包/类
protected void internalInit() {
super.internalInit();
//String url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_userinfo#wechat_redirect";
WeiXinApi20 api = new WeiXinApi20();
this.service = new WeiXinOAuth20ServiceImpl(api, new OAuthConfig(this.key, this.secret, this.callbackUrl, SignatureType.Header, null, null),
this.connectTimeout, this.readTimeout, this.proxyHost, this.proxyPort); }
示例7: asConfig
import org.scribe.model.SignatureType; //导入方法依赖的package包/类
synchronized public OAuthConfig asConfig() {
String injected = getInjecter().injectIdToCallback(callback, getId());
return new OAuthConfig(apiKey, apiSecret, injected, SignatureType.Header, scope, null);
}