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 java.lang.Object implements Lookup<AuthSchemeProvider>
Deprecated.(4.3) useRegistry
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 Constructor Description AuthSchemeRegistry()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AuthScheme
getAuthScheme(java.lang.String name, HttpParams params)
Deprecated.Gets theauthentication scheme
with the given name.java.util.List<java.lang.String>
getSchemeNames()
Deprecated.Obtains a list containing the names of all registeredauthentication schemes
AuthSchemeProvider
lookup(java.lang.String name)
Deprecated.void
register(java.lang.String name, AuthSchemeFactory factory)
Deprecated.Registers aAuthSchemeFactory
with the given identifier.void
setItems(java.util.Map<java.lang.String,AuthSchemeFactory> map)
Deprecated.Populates the internal collection of registeredauthentication schemes
with the content of the map passed as a parameter.void
unregister(java.lang.String name)
Deprecated.Unregisters the class implementing anauthentication scheme
with the given name.
-
-
-
Method Detail
-
register
public void register(java.lang.String name, AuthSchemeFactory factory)
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:
getAuthScheme(java.lang.String, org.apache.http.params.HttpParams)
-
unregister
public void unregister(java.lang.String name)
Deprecated.Unregisters the class implementing anauthentication scheme
with the given name.- Parameters:
name
- the identifier of the class to unregister
-
getAuthScheme
public AuthScheme getAuthScheme(java.lang.String name, HttpParams params) throws java.lang.IllegalStateException
Deprecated.Gets theauthentication scheme
with the given name.- Parameters:
name
- theauthentication scheme
identifierparams
- theHTTP parameters
for the authentication scheme.- Returns:
authentication scheme
- Throws:
java.lang.IllegalStateException
- if a scheme with the given name cannot be found
-
getSchemeNames
public java.util.List<java.lang.String> getSchemeNames()
Deprecated.Obtains a list containing the names of all registeredauthentication schemes
- Returns:
- list of registered scheme names
-
setItems
public void setItems(java.util.Map<java.lang.String,AuthSchemeFactory> map)
Deprecated.Populates the internal collection of registeredauthentication schemes
with the content of the map passed as a parameter.- Parameters:
map
- authentication schemes
-
lookup
public AuthSchemeProvider lookup(java.lang.String name)
Deprecated.- Specified by:
lookup
in interfaceLookup<AuthSchemeProvider>
-
-