本文整理了Java中org.apache.commons.httpclient.auth.AuthState.invalidate()
方法的一些代码示例,展示了AuthState.invalidate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthState.invalidate()
方法的具体详情如下:
包路径:org.apache.commons.httpclient.auth.AuthState
类名称:AuthState
方法名:invalidate
[英]Invalidates the authentication state by resetting its parameters.
[中]通过重置身份验证状态的参数使其无效。
代码示例来源:origin: commons-httpclient/commons-httpclient
/**
* Assigns the given {@link AuthScheme authentication scheme}.
*
* @param authScheme the {@link AuthScheme authentication scheme}
*/
public void setAuthScheme(final AuthScheme authScheme) {
if (authScheme == null) {
invalidate();
return;
}
if (this.preemptive && !(this.authScheme.getClass().isInstance(authScheme))) {
this.preemptive = false;
this.authAttempted = false;
}
this.authScheme = authScheme;
}
代码示例来源:origin: commons-httpclient/commons-httpclient
recoverableExceptionCount = 0;
connectionCloseForced = false;
hostAuthState.invalidate();
proxyAuthState.invalidate();
cookiespec = null;
requestSent = false;
代码示例来源:origin: commons-httpclient/commons-httpclient
method.getHostAuthState().invalidate();
return true;
代码示例来源:origin: org.apache.commons/httpclient
/**
* Assigns the given {@link AuthScheme authentication scheme}.
*
* @param authScheme the {@link AuthScheme authentication scheme}
*/
public void setAuthScheme(final AuthScheme authScheme) {
if (authScheme == null) {
invalidate();
return;
}
if (this.preemptive && !(this.authScheme.getClass().isInstance(authScheme))) {
this.preemptive = false;
this.authAttempted = false;
}
this.authScheme = authScheme;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
/**
* Assigns the given {@link AuthScheme authentication scheme}.
*
* @param authScheme the {@link AuthScheme authentication scheme}
*/
public void setAuthScheme(final AuthScheme authScheme) {
if (authScheme == null) {
invalidate();
return;
}
if (this.preemptive && !(this.authScheme.getClass().isInstance(authScheme))) {
this.preemptive = false;
this.authAttempted = false;
}
this.authScheme = authScheme;
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
/**
* Assigns the given {@link AuthScheme authentication scheme}.
*
* @param authScheme the {@link AuthScheme authentication scheme}
*/
public void setAuthScheme(final AuthScheme authScheme) {
if (authScheme == null) {
invalidate();
return;
}
if (this.preemptive && !(this.authScheme.getClass().isInstance(authScheme))) {
this.preemptive = false;
this.authAttempted = false;
}
this.authScheme = authScheme;
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
/**
* Assigns the given {@link AuthScheme authentication scheme}.
*
* @param authScheme the {@link AuthScheme authentication scheme}
*/
public void setAuthScheme(final AuthScheme authScheme) {
if (authScheme == null) {
invalidate();
return;
}
if (this.preemptive && !(this.authScheme.getClass().isInstance(authScheme))) {
this.preemptive = false;
this.authAttempted = false;
}
this.authScheme = authScheme;
}
代码示例来源:origin: mguessan/davmail
private static void resetMethod(HttpMethod method) {
// reset method state
method.releaseConnection();
method.getHostAuthState().invalidate();
method.getProxyAuthState().invalidate();
}
代码示例来源:origin: org.zaproxy/zap
recoverableExceptionCount = 0;
connectionCloseForced = false;
hostAuthState.invalidate();
proxyAuthState.invalidate();
cookiespec = null;
requestSent = false;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
recoverableExceptionCount = 0;
connectionCloseForced = false;
hostAuthState.invalidate();
proxyAuthState.invalidate();
cookiespec = null;
requestSent = false;
代码示例来源:origin: org.apache.commons/httpclient
recoverableExceptionCount = 0;
connectionCloseForced = false;
hostAuthState.invalidate();
proxyAuthState.invalidate();
cookiespec = null;
requestSent = false;
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
recoverableExceptionCount = 0;
connectionCloseForced = false;
hostAuthState.invalidate();
proxyAuthState.invalidate();
cookiespec = null;
requestSent = false;
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
recoverableExceptionCount = 0;
connectionCloseForced = false;
hostAuthState.invalidate();
proxyAuthState.invalidate();
cookiespec = null;
requestSent = false;
代码示例来源:origin: rosjava/rosjava_core
protected void resetClientForRedirect()
throws XmlRpcException {
//get the location header to find out where to redirect to
Header locationHeader = method.getResponseHeader("location");
if (locationHeader == null) {
throw new XmlRpcException("Invalid redirect: Missing location header");
}
String location = locationHeader.getValue();
URI redirectUri = null;
URI currentUri = null;
try {
currentUri = method.getURI();
String charset = currentUri.getProtocolCharset();
redirectUri = new URI(location, true, charset);
method.setURI(redirectUri);
} catch (URIException ex) {
throw new XmlRpcException(ex.getMessage(), ex);
}
//And finally invalidate the actual authentication scheme
method.getHostAuthState().invalidate();
}
代码示例来源:origin: org.apache.xmlrpc/xmlrpc-client
protected void resetClientForRedirect()
throws XmlRpcException {
//get the location header to find out where to redirect to
Header locationHeader = method.getResponseHeader("location");
if (locationHeader == null) {
throw new XmlRpcException("Invalid redirect: Missing location header");
}
String location = locationHeader.getValue();
URI redirectUri = null;
URI currentUri = null;
try {
currentUri = method.getURI();
String charset = currentUri.getProtocolCharset();
redirectUri = new URI(location, true, charset);
method.setURI(redirectUri);
} catch (URIException ex) {
throw new XmlRpcException(ex.getMessage(), ex);
}
//And finally invalidate the actual authentication scheme
method.getHostAuthState().invalidate();
}
代码示例来源:origin: org.zaproxy/zap
method.getHostAuthState().invalidate();
method.getProxyAuthState().invalidate();
return true;
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
method.getHostAuthState().invalidate();
return true;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
method.getHostAuthState().invalidate();
return true;
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
method.getHostAuthState().invalidate();
return true;
代码示例来源:origin: org.apache.commons/httpclient
method.getHostAuthState().invalidate();
return true;
内容来源于网络,如有侵权,请联系作者删除!