Org.Apache.Http.Authentication.AuthSchemeRegistry.Register Method
Registers a Org.Apache.Http.Authentication.IAuthSchemeFactory with the given identifier.

Syntax

[Android.Runtime.Register("register", "(Ljava/lang/String;Lorg/apache/http/auth/AuthSchemeFactory;)V", "")]
public void Register (string name, IAuthSchemeFactory factory)

See Also

AuthSchemeRegistry.GetAuthScheme(string, Org.Apache.Http.Params.IHttpParams)

Parameters

name
the identifier for this scheme
factory
the Org.Apache.Http.Authentication.IAuthSchemeFactory class to register

Remarks

Registers a Org.Apache.Http.Authentication.IAuthSchemeFactory 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 Org.Apache.Http.Authentication.IAuthScheme from AuthSchemeRegistry.GetAuthScheme(string, Org.Apache.Http.Params.IHttpParams).

Please note that custom authentication preferences, if used, need to be updated accordingly for the new Org.Apache.Http.Authentication.IAuthScheme to take effect.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http.Authentication
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1