本文整理了Java中org.apache.commons.httpclient.auth.AuthScheme.getSchemeName()
方法的一些代码示例,展示了AuthScheme.getSchemeName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthScheme.getSchemeName()
方法的具体详情如下:
包路径:org.apache.commons.httpclient.auth.AuthScheme
类名称:AuthScheme
方法名:getSchemeName
[英]Returns textual designation of the given authentication scheme.
[中]返回给定身份验证方案的文本指定。
代码示例来源:origin: commons-httpclient/commons-httpclient
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("Auth state: auth requested [");
buffer.append(this.authRequested);
buffer.append("]; auth attempted [");
buffer.append(this.authAttempted);
if (this.authScheme != null) {
buffer.append("]; auth scheme [");
buffer.append(this.authScheme.getSchemeName());
buffer.append("]; realm [");
buffer.append(this.authScheme.getRealm());
}
buffer.append("] preemptive [");
buffer.append(this.preemptive);
buffer.append("]");
return buffer.toString();
}
}
代码示例来源:origin: commons-httpclient/commons-httpclient
String id = authscheme.getSchemeName();
if (LOG.isDebugEnabled()) {
LOG.debug("Using authentication scheme: " + id);
代码示例来源:origin: commons-httpclient/commons-httpclient
conn.getProxyHost(), conn.getProxyPort(),
authscheme.getRealm(),
authscheme.getSchemeName());
代码示例来源:origin: commons-httpclient/commons-httpclient
host, port,
authscheme.getRealm(),
authscheme.getSchemeName());
代码示例来源:origin: commons-httpclient/commons-httpclient
conn.getProxyHost(), conn.getProxyPort(),
authscheme.getRealm(),
authscheme.getSchemeName());
if (LOG.isDebugEnabled()) {
LOG.debug("Authenticating with " + authscope);
代码示例来源:origin: commons-httpclient/commons-httpclient
host, port,
authscheme.getRealm(),
authscheme.getSchemeName());
if (LOG.isDebugEnabled()) {
LOG.debug("Authenticating with " + authscope);
代码示例来源:origin: org.jvnet.hudson/htmlunit
/**
* Builds a key with the specified data.
* @param scheme the scheme
* @param host the server name
* @param port the server port
* @param proxy is proxy
* @return the new key
*/
protected Object buildKey(final AuthScheme scheme, final String host, final int port, final boolean proxy) {
return scheme.getSchemeName() + " " + scheme.getRealm() + " " + host + ":" + port + " " + proxy;
}
代码示例来源:origin: org.jenkins-ci/htmlunit
/**
* Builds a key with the specified data.
* @param scheme the scheme
* @param host the server name
* @param port the server port
* @param proxy is proxy
* @return the new key
*/
protected Object buildKey(final AuthScheme scheme, final String host, final int port, final boolean proxy) {
return scheme.getSchemeName() + " " + scheme.getRealm() + " " + host + ":" + port + " " + proxy;
}
代码示例来源:origin: net.disy.htmlunit/htmlunit
/**
* Builds a key with the specified data.
* @param scheme the scheme
* @param host the server name
* @param port the server port
* @param proxy is proxy
* @return the new key
*/
protected Object buildKey(final AuthScheme scheme, final String host, final int port, final boolean proxy) {
return scheme.getSchemeName() + " " + scheme.getRealm() + " " + host + ":" + port + " " + proxy;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("Auth state: auth requested [");
buffer.append(this.authRequested);
buffer.append("]; auth attempted [");
buffer.append(this.authAttempted);
if (this.authScheme != null) {
buffer.append("]; auth scheme [");
buffer.append(this.authScheme.getSchemeName());
buffer.append("]; realm [");
buffer.append(this.authScheme.getRealm());
}
buffer.append("] preemptive [");
buffer.append(this.preemptive);
buffer.append("]");
return buffer.toString();
}
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("Auth state: auth requested [");
buffer.append(this.authRequested);
buffer.append("]; auth attempted [");
buffer.append(this.authAttempted);
if (this.authScheme != null) {
buffer.append("]; auth scheme [");
buffer.append(this.authScheme.getSchemeName());
buffer.append("]; realm [");
buffer.append(this.authScheme.getRealm());
}
buffer.append("] preemptive [");
buffer.append(this.preemptive);
buffer.append("]");
return buffer.toString();
}
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("Auth state: auth requested [");
buffer.append(this.authRequested);
buffer.append("]; auth attempted [");
buffer.append(this.authAttempted);
if (this.authScheme != null) {
buffer.append("]; auth scheme [");
buffer.append(this.authScheme.getSchemeName());
buffer.append("]; realm [");
buffer.append(this.authScheme.getRealm());
}
buffer.append("] preemptive [");
buffer.append(this.preemptive);
buffer.append("]");
return buffer.toString();
}
}
代码示例来源:origin: org.apache.commons/httpclient
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("Auth state: auth requested [");
buffer.append(this.authRequested);
buffer.append("]; auth attempted [");
buffer.append(this.authAttempted);
if (this.authScheme != null) {
buffer.append("]; auth scheme [");
buffer.append(this.authScheme.getSchemeName());
buffer.append("]; realm [");
buffer.append(this.authScheme.getRealm());
}
buffer.append("] preemptive [");
buffer.append(this.preemptive);
buffer.append("]");
return buffer.toString();
}
}
代码示例来源:origin: org.jvnet.hudson/htmlunit
/**
* @param scheme the request scheme for which Credentials are asked
* @param scope the configured authorization scope
* @return <code>true</code> if the scope's scheme matches the provided one
*/
protected boolean matchScheme(final AuthScope scope, final AuthScheme scheme) {
return scope.getScheme() == AuthScope.ANY_SCHEME || scope.getScheme().equals(scheme.getSchemeName());
}
代码示例来源:origin: org.jenkins-ci/htmlunit
/**
* @param scheme the request scheme for which Credentials are asked
* @param scope the configured authorization scope
* @return <code>true</code> if the scope's scheme matches the provided one
*/
protected boolean matchScheme(final AuthScope scope, final AuthScheme scheme) {
return scope.getScheme() == AuthScope.ANY_SCHEME || scope.getScheme().equals(scheme.getSchemeName());
}
代码示例来源:origin: net.disy.htmlunit/htmlunit
/**
* @param scheme the request scheme for which Credentials are asked
* @param scope the configured authorization scope
* @return <code>true</code> if the scope's scheme matches the provided one
*/
protected boolean matchScheme(final AuthScope scope, final AuthScheme scheme) {
return scope.getScheme() == AuthScope.ANY_SCHEME || scope.getScheme().equals(scheme.getSchemeName());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
conn.getProxyHost(), conn.getProxyPort(),
authscheme.getRealm(),
authscheme.getSchemeName());
if (LOG.isDebugEnabled()) {
LOG.debug("Authenticating with " + authscope);
代码示例来源:origin: org.apache.commons/httpclient
conn.getProxyHost(), conn.getProxyPort(),
authscheme.getRealm(),
authscheme.getSchemeName());
if (LOG.isDebugEnabled()) {
LOG.debug("Authenticating with " + authscope);
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
conn.getProxyHost(), conn.getProxyPort(),
authscheme.getRealm(),
authscheme.getSchemeName());
if (LOG.isDebugEnabled()) {
LOG.debug("Authenticating with " + authscope);
代码示例来源:origin: org.apache.commons/httpclient
host, port,
authscheme.getRealm(),
authscheme.getSchemeName());
if (LOG.isDebugEnabled()) {
LOG.debug("Authenticating with " + authscope);
内容来源于网络,如有侵权,请联系作者删除!