本文整理了Java中ch.cyberduck.core.Protocol.getOAuthClientSecret()
方法的一些代码示例,展示了Protocol.getOAuthClientSecret()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Protocol.getOAuthClientSecret()
方法的具体详情如下:
包路径:ch.cyberduck.core.Protocol
类名称:Protocol
方法名:getOAuthClientSecret
暂无
代码示例来源:origin: iterate-ch/cyberduck
@Override
public String getOAuthClientSecret() {
final String v = this.value("OAuth Client Secret");
if(StringUtils.isBlank(v)) {
return parent.getOAuthClientSecret();
}
return v;
}
代码示例来源:origin: iterate-ch/cyberduck
@Override
public void process(final HttpRequest request, final HttpContext context) {
request.addHeader(HttpHeaders.AUTHORIZATION,
String.format("Basic %s", Base64.encodeToString(String.format("%s:%s", host.getProtocol().getOAuthClientId(), host.getProtocol().getOAuthClientSecret()).getBytes(StandardCharsets.UTF_8), false)));
}
}).build(),
代码示例来源:origin: iterate-ch/cyberduck
public OAuth2RequestInterceptor(final HttpClient client, final Protocol protocol) {
this(client, protocol.getOAuthTokenUrl(), protocol.getOAuthAuthorizationUrl(), protocol.getOAuthClientId(), protocol.getOAuthClientSecret(), protocol.getOAuthScopes());
}
代码示例来源:origin: iterate-ch/cyberduck
public OAuth2RequestInterceptor(final HttpClient client, final Host host) {
this(client,
Scheme.isURL(host.getProtocol().getOAuthTokenUrl()) ? host.getProtocol().getOAuthTokenUrl() : new HostUrlProvider().withUsername(false).withPath(true).get(
host.getProtocol().getScheme(), host.getPort(), null, host.getHostname(), host.getProtocol().getOAuthTokenUrl()),
Scheme.isURL(host.getProtocol().getOAuthAuthorizationUrl()) ? host.getProtocol().getOAuthAuthorizationUrl() : new HostUrlProvider().withUsername(false).withPath(true).get(
host.getProtocol().getScheme(), host.getPort(), null, host.getHostname(), host.getProtocol().getOAuthAuthorizationUrl()),
host.getProtocol().getOAuthClientId(),
host.getProtocol().getOAuthClientSecret(),
host.getProtocol().getOAuthScopes());
}
内容来源于网络,如有侵权,请联系作者删除!