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 scheme
with the given name.Deprecated.Obtains a list containing the names of all registeredauthentication schemes
Deprecated.void
register
(String name, AuthSchemeFactory factory) Deprecated.Registers aAuthSchemeFactory
with the given identifier.void
setItems
(Map<String, AuthSchemeFactory> map) Deprecated.Populates the internal collection of registeredauthentication schemes
with the content of the map passed as a parameter.void
unregister
(String name) Deprecated.Unregisters the class implementing anauthentication scheme
with the given name.
-
Constructor Details
-
AuthSchemeRegistry
public AuthSchemeRegistry()Deprecated.
-
-
Method Details
-
register
Deprecated.Registers aAuthSchemeFactory
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 theauthentication scheme
fromgetAuthScheme(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 scheme
to take effect.- Parameters:
name
- the identifier for this schemefactory
- theAuthSchemeFactory
class to register- See Also:
-
unregister
Deprecated.Unregisters the class implementing anauthentication scheme
with the given name.- Parameters:
name
- the identifier of the class to unregister
-
getAuthScheme
Deprecated.Gets theauthentication scheme
with the given name.- Parameters:
name
- theauthentication scheme
identifierparams
- theHTTP parameters
for 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 schemes
with the content of the map passed as a parameter.- Parameters:
map
- authentication schemes
-
lookup
Deprecated.- Specified by:
lookup
in interfaceLookup<AuthSchemeProvider>
-
Registry