| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.auth.AuthSchemeRegistry
Registry
@Contract(threading=SAFE) @Deprecated public final class AuthSchemeRegistry
Authentication scheme registry that can be used to obtain the corresponding authentication scheme implementation for a given type of authorization challenge.
| Constructor Summary | |
|---|---|
| AuthSchemeRegistry()Deprecated. | |
| Method Summary | |
|---|---|
|  AuthScheme | getAuthScheme(String name,
              org.apache.http.params.HttpParams params)Deprecated. Gets the authentication schemewith the given name. | 
|  List<String> | getSchemeNames()Deprecated. Obtains a list containing the names of all registered authentication
 schemes | 
|  AuthSchemeProvider | lookup(String name)Deprecated. | 
|  void | register(String name,
         AuthSchemeFactory factory)Deprecated. Registers a AuthSchemeFactorywith  the given identifier. | 
|  void | setItems(Map<String,AuthSchemeFactory> map)Deprecated. Populates the internal collection of registered authentication schemeswith the content of the map passed as a parameter. | 
|  void | unregister(String name)Deprecated. Unregisters the class implementing an authentication schemewith
 the given name. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AuthSchemeRegistry()
| Method Detail | 
|---|
public void register(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, 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, org.apache.http.params.HttpParams)public void unregister(String name)
authentication scheme with
 the given name.
name - the identifier of the class to unregister
public AuthScheme getAuthScheme(String name,
                                org.apache.http.params.HttpParams params)
                         throws IllegalStateException
authentication scheme with the given name.
name - the authentication scheme identifierparams - the HTTP parameters for the authentication
  scheme.
authentication scheme
IllegalStateException - if a scheme with the given name cannot be foundpublic List<String> getSchemeNames()
authentication
 schemes
public void setItems(Map<String,AuthSchemeFactory> map)
authentication schemes
 with the content of the map passed as a parameter.
map - authentication schemespublic AuthSchemeProvider lookup(String name)
lookup in interface org.apache.http.config.Lookup<AuthSchemeProvider>| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||