Registry@ThreadSafe @Deprecated public final class AuthSchemeRegistry extends java.lang.Object implements Lookup<AuthSchemeProvider>
| 构造器和说明 |
|---|
AuthSchemeRegistry()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
AuthScheme |
getAuthScheme(java.lang.String name,
HttpParams params)
已过时。
Gets the
authentication scheme with the given name. |
java.util.List<java.lang.String> |
getSchemeNames()
已过时。
Obtains a list containing the names of all registered
authentication
schemes |
AuthSchemeProvider |
lookup(java.lang.String name)
已过时。
|
void |
register(java.lang.String name,
AuthSchemeFactory factory)
已过时。
Registers a
AuthSchemeFactory with the given identifier. |
void |
setItems(java.util.Map<java.lang.String,AuthSchemeFactory> map)
已过时。
Populates the internal collection of registered
authentication schemes
with the content of the map passed as a parameter. |
void |
unregister(java.lang.String name)
已过时。
Unregisters the class implementing an
authentication scheme with
the given name. |
public void register(java.lang.String name,
AuthSchemeFactory factory)
AuthSchemeFactory with the given identifier. If a factory with the
given name already exists it will be overridden. This name is the same one used to
retrieve the authentication scheme from getAuthScheme(java.lang.String, depends.org.apache.http.params.HttpParams).
Please note that custom authentication preferences, if used, need to be updated accordingly
for the new authentication scheme to take effect.
name - the identifier for this schemefactory - the AuthSchemeFactory class to registergetAuthScheme(java.lang.String, depends.org.apache.http.params.HttpParams)public void unregister(java.lang.String name)
authentication scheme with
the given name.name - the identifier of the class to unregisterpublic AuthScheme getAuthScheme(java.lang.String name, HttpParams params) throws java.lang.IllegalStateException
authentication scheme with the given name.name - the authentication scheme identifierparams - the HTTP parameters for the authentication
scheme.authentication schemejava.lang.IllegalStateException - if a scheme with the given name cannot be foundpublic java.util.List<java.lang.String> getSchemeNames()
authentication
schemespublic void setItems(java.util.Map<java.lang.String,AuthSchemeFactory> map)
authentication schemes
with the content of the map passed as a parameter.map - authentication schemespublic AuthSchemeProvider lookup(java.lang.String name)
lookup 在接口中 Lookup<AuthSchemeProvider>