Android Guides | Samples

Org.Apache.Http.Conn.IClientConnectionOperator.UpdateSecureConnection Method

Updates a connection with a layered secure connection.

Syntax

[Android.Runtime.Register("updateSecureConnection", "(Lorg/apache/http/conn/OperatedClientConnection;Lorg/apache/http/HttpHost;Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V", "GetUpdateSecureConnection_Lorg_apache_http_conn_OperatedClientConnection_Lorg_apache_http_HttpHost_Lorg_apache_http_protocol_HttpContext_Lorg_apache_http_params_HttpParams_Handler:Org.Apache.Http.Conn.IClientConnectionOperatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Void UpdateSecureConnection (IOperatedClientConnection conn, HttpHost target, IHttpContext context, IHttpParams params)

Parameters

conn
the open connection to update
target
the target host for the updated connection. The connection must already be open or tunnelled to the host and port, but the scheme of the target will be used to create a layered connection.
context
the context for the connection
params
the parameters for the updated connection

Exceptions

TypeReason
IOExceptionin case of a problem

Remarks

Updates a connection with a layered secure connection. The typical use of this method is to update a tunnelled plain connection (HTTP) to a secure TLS/SSL connection (HTTPS).

[Android Documentation]

Requirements

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