org.apache.commons.httpclient.auth.AuthState.setAuthScheme()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中org.apache.commons.httpclient.auth.AuthState.setAuthScheme()方法的一些代码示例,展示了AuthState.setAuthScheme()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthState.setAuthScheme()方法的具体详情如下:
包路径:org.apache.commons.httpclient.auth.AuthState
类名称:AuthState
方法名:setAuthScheme

AuthState.setAuthScheme介绍

[英]Assigns the given AuthScheme.
[中]指定给定的AuthScheme。

代码示例

代码示例来源:origin: commons-httpclient/commons-httpclient

state.setAuthScheme(selectAuthScheme(challenges));

代码示例来源:origin: commons-httpclient/commons-httpclient

this.connectMethod.getResponseBodyAsStream()
);
method.getProxyAuthState().setAuthScheme(
  this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

state.setAuthScheme(selectAuthScheme(challenges));

代码示例来源:origin: org.apache.commons/httpclient

state.setAuthScheme(selectAuthScheme(challenges));

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

state.setAuthScheme(selectAuthScheme(challenges));

代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient

state.setAuthScheme(selectAuthScheme(challenges));

代码示例来源:origin: org.eclipse.mylyn.commons/xmlrpc

public void processRequest(HttpMethod method) {
  DigestScheme scheme = digestScheme;
  if (scheme != null) {
    if (DEBUG_AUTH) {
      System.err.println(location.getUrl() + ": Digest scheme is present"); //$NON-NLS-1$ 
    }
    Credentials creds = httpClient.getState().getCredentials(authScope);
    if (creds != null) {
      if (DEBUG_AUTH) {
        System.err.println(location.getUrl() + ": Setting digest scheme for request"); //$NON-NLS-1$ 
      }
      method.getHostAuthState().setAuthScheme(digestScheme);
      method.getHostAuthState().setAuthRequested(true);
    }
  }
}

代码示例来源:origin: org.zaproxy/zap

this.connectMethod.getResponseBodyAsStream()
);
method.getProxyAuthState().setAuthScheme(
  this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

this.connectMethod.getResponseBodyAsStream()
);
method.getProxyAuthState().setAuthScheme(
  this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;

代码示例来源:origin: org.apache.commons/httpclient

this.connectMethod.getResponseBodyAsStream()
);
method.getProxyAuthState().setAuthScheme(
  this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

this.connectMethod.getResponseBodyAsStream()
);
method.getProxyAuthState().setAuthScheme(
  this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;

代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient

this.connectMethod.getResponseBodyAsStream()
);
method.getProxyAuthState().setAuthScheme(
  this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;

相关文章