Package org.apache.http.auth
Class AuthSchemeRegistry
java.lang.Object
org.apache.http.auth.AuthSchemeRegistry
- All Implemented Interfaces:
Lookup<AuthSchemeProvider>
@Contract(threading=SAFE)
@Deprecated
public final class AuthSchemeRegistry
extends Object
implements Lookup<AuthSchemeProvider>
Deprecated.
Authentication scheme registry that can be used to obtain the corresponding
authentication scheme implementation for a given type of authorization challenge.
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuthScheme(String name, HttpParams params) Deprecated.Gets theauthentication schemewith the given name.Deprecated.Obtains a list containing the names of all registeredauthentication schemesDeprecated.voidregister(String name, AuthSchemeFactory factory) Deprecated.Registers aAuthSchemeFactorywith the given identifier.voidsetItems(Map<String, AuthSchemeFactory> map) Deprecated.Populates the internal collection of registeredauthentication schemeswith the content of the map passed as a parameter.voidunregister(String name) Deprecated.Unregisters the class implementing anauthentication schemewith the given name.
-
Constructor Details
-
AuthSchemeRegistry
public AuthSchemeRegistry()Deprecated.
-
-
Method Details
-
register
Deprecated.Registers aAuthSchemeFactorywith 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 theauthentication schemefromgetAuthScheme(java.lang.String, org.apache.http.params.HttpParams).Please note that custom authentication preferences, if used, need to be updated accordingly for the new
authentication schemeto take effect.- Parameters:
name- the identifier for this schemefactory- theAuthSchemeFactoryclass to register- See Also:
-
unregister
Deprecated.Unregisters the class implementing anauthentication schemewith the given name.- Parameters:
name- the identifier of the class to unregister
-
getAuthScheme
Deprecated.Gets theauthentication schemewith the given name.- Parameters:
name- theauthentication schemeidentifierparams- theHTTP parametersfor the authentication scheme.- Returns:
authentication scheme- Throws:
IllegalStateException- if a scheme with the given name cannot be found
-
getSchemeNames
Deprecated.Obtains a list containing the names of all registeredauthentication schemes- Returns:
- list of registered scheme names
-
setItems
Deprecated.Populates the internal collection of registeredauthentication schemeswith the content of the map passed as a parameter.- Parameters:
map- authentication schemes
-
lookup
Deprecated.- Specified by:
lookupin interfaceLookup<AuthSchemeProvider>
-
Registry