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) useRegistryAuthentication 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 AuthSchemegetAuthScheme(java.lang.String name, HttpParams params)Deprecated.Gets theauthentication schemewith the given name.java.util.List<java.lang.String>getSchemeNames()Deprecated.Obtains a list containing the names of all registeredauthentication schemesAuthSchemeProviderlookup(java.lang.String name)Deprecated.voidregister(java.lang.String name, AuthSchemeFactory factory)Deprecated.Registers aAuthSchemeFactorywith the given identifier.voidsetItems(java.util.Map<java.lang.String,AuthSchemeFactory> map)Deprecated.Populates the internal collection of registeredauthentication schemeswith the content of the map passed as a parameter.voidunregister(java.lang.String name)Deprecated.Unregisters the class implementing anauthentication schemewith the given name.
-
-
-
Method Detail
-
register
public void register(java.lang.String name, AuthSchemeFactory factory)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:
getAuthScheme(java.lang.String, org.apache.http.params.HttpParams)
-
unregister
public void unregister(java.lang.String name)
Deprecated.Unregisters the class implementing anauthentication schemewith 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 schemewith the given name.- Parameters:
name- theauthentication schemeidentifierparams- theHTTP parametersfor 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 schemeswith the content of the map passed as a parameter.- Parameters:
map- authentication schemes
-
lookup
public AuthSchemeProvider lookup(java.lang.String name)
Deprecated.- Specified by:
lookupin interfaceLookup<AuthSchemeProvider>
-
-