AuthenticateAsClient Method (String, X509Certificate, X509Certificate[], SslVerification, SslProtocols[])
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Called by clients to authenticate the server and optionally the client in a client-server connection. The authentication process uses the specified certificate collections and SSL protocols.
Namespace: Microsoft.SPOT.Net.Security
Assembly: System.Net.Security (in System.Net.Security.dll)
Syntax
'Declaration
Public Sub AuthenticateAsClient ( _
targetHost As String, _
cert As X509Certificate, _
ca As X509Certificate(), _
verify As SslVerification, _
ParamArray sslProtocols As SslProtocols() _
)
public void AuthenticateAsClient(
string targetHost,
X509Certificate cert,
X509Certificate[] ca,
SslVerification verify,
params SslProtocols[] sslProtocols
)
public:
void AuthenticateAsClient(
String^ targetHost,
X509Certificate^ cert,
array<X509Certificate^>^ ca,
SslVerification verify,
... array<SslProtocols>^ sslProtocols
)
member AuthenticateAsClient :
targetHost:string *
cert:X509Certificate *
ca:X509Certificate[] *
verify:SslVerification *
sslProtocols:SslProtocols[] -> unit
public function AuthenticateAsClient(
targetHost : String,
cert : X509Certificate,
ca : X509Certificate[],
verify : SslVerification,
... sslProtocols : SslProtocols[]
)
Parameters
- targetHost
Type: System. . :: . .String
The name of the server that will share this SslStream.
- cert
Type: System.Security.Cryptography.X509Certificates. . :: . .X509Certificate
The client certificate.
- ca
Type: array<System.Security.Cryptography.X509Certificates. . :: . .X509Certificate> [] () [] []
The collection of certificates for client authorities to use for authentication.
- verify
Type: Microsoft.SPOT.Net.Security. . :: . .SslVerification
The type of verification required for authentication.
- sslProtocols
Type: array<Microsoft.SPOT.Net.Security. . :: . .SslProtocols> [] () [] []
The protocols that may be supported.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.