Registry
@Contract(threading=SAFE) @Deprecated public final class AuthSchemeRegistry extends Object implements Lookup<AuthSchemeProvider>
| Constructor and Description |
|---|
AuthSchemeRegistry()
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
AuthScheme |
getAuthScheme(String name, HttpParams params)
已过时。
获取给定名称的 authentication scheme 。
|
List<String> |
getSchemeNames()
已过时。
获取包含所有注册名称的列表 authentication schemes的列表
|
AuthSchemeProvider |
lookup(String name)
已过时。
|
void |
register(String name, AuthSchemeFactory factory)
已过时。
使用给定的标识符注册 AuthSchemeFactory 。
|
void |
setItems(Map<String,AuthSchemeFactory> map)
已过时。
填写已注册的 authentication schemes的内部集合, 其中以作为参数传递的映射的内容。
|
void |
unregister(String name)
已过时。
取消注册实施具有给定名称的 authentication scheme的类。
|
public void register(String name, AuthSchemeFactory factory)
AuthSchemeFactory 。
如果具有给定名称的工厂已经存在,将被覆盖。
这个名字与getAuthScheme(java.lang.String, org.apache.http.params.HttpParams)中的authentication scheme相同 。
请注意,如果使用自定义身份验证偏好,需要相应更新,以使新的authentication scheme生效。
name - 此方案的标识符
factory - AuthSchemeFactory类注册
getAuthScheme(java.lang.String, org.apache.http.params.HttpParams)
public void unregister(String name)
authentication scheme的类。
name - 要注销的类的标识符
public AuthScheme getAuthScheme(String name, HttpParams params) throws IllegalStateException
authentication scheme 。
name - authentication scheme标识符
params - 认证方案的HTTP parameters 。
authentication scheme
IllegalStateException - 如果
IllegalStateException具有给定名称的方案
public List<String> getSchemeNames()
authentication schemes
public void setItems(Map<String,AuthSchemeFactory> map)
authentication schemes的内部集合, 其中以作为参数传递的映射的内容。
map - 认证方案
public AuthSchemeProvider lookup(String name)
lookup在界面
Lookup<AuthSchemeProvider>
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.