org.apache.http.auth.AuthState.invalidate()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(106)

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

AuthState.invalidate介绍

[英]Invalidates the authentication state by resetting its parameters.
[中]通过重置身份验证状态的参数使其无效。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * 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;
  }
  this.authScheme = authScheme;
}

代码示例来源:origin: robolectric/robolectric

targetAuthState.invalidate();
AuthScheme authScheme = proxyAuthState.getAuthScheme();
if (authScheme != null && authScheme.isConnectionBased()) {
 proxyAuthState.invalidate();

代码示例来源:origin: MobiVM/robovm

/**
 * 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;
  }
  this.authScheme = authScheme;
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * 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;
  }
  this.authScheme = authScheme;
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * 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;
  }
  this.authScheme = authScheme;
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * 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;
  }
  this.authScheme = authScheme;
}

代码示例来源:origin: com.github.japgolly.android.test/robolectric

targetAuthState.invalidate();
AuthScheme authScheme = proxyAuthState.getAuthScheme();
if (authScheme != null && authScheme.isConnectionBased()) {
  proxyAuthState.invalidate();

相关文章