AuthenticateAsServer Method (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 servers to authenticate the server and optionally the client in a client-server connection using the specified certificate, verification requirements and security protocol.
Namespace: Microsoft.SPOT.Net.Security
Assembly: System.Net.Security (in System.Net.Security.dll)
Syntax
'Declaration
Public Sub AuthenticateAsServer ( _
cert As X509Certificate, _
ca As X509Certificate(), _
verify As SslVerification, _
ParamArray sslProtocols As SslProtocols() _
)
public void AuthenticateAsServer(
X509Certificate cert,
X509Certificate[] ca,
SslVerification verify,
params SslProtocols[] sslProtocols
)
public:
void AuthenticateAsServer(
X509Certificate^ cert,
array<X509Certificate^>^ ca,
SslVerification verify,
... array<SslProtocols>^ sslProtocols
)
member AuthenticateAsServer :
cert:X509Certificate *
ca:X509Certificate[] *
verify:SslVerification *
sslProtocols:SslProtocols[] -> unit
public function AuthenticateAsServer(
cert : X509Certificate,
ca : X509Certificate[],
verify : SslVerification,
... sslProtocols : SslProtocols[]
)
Parameters
- cert
Type: System.Security.Cryptography.X509Certificates. . :: . .X509Certificate
The certificate used to authenticate the server.
- ca
Type: array<System.Security.Cryptography.X509Certificates. . :: . .X509Certificate> [] () [] []
The certifcates for certificate authorities to use for authentication.
- verify
Type: Microsoft.SPOT.Net.Security. . :: . .SslVerification
An enumeration value that specifies the degree of verification required, such as whether the client must supply a certificate for authentication.
- sslProtocols
Type: array<Microsoft.SPOT.Net.Security. . :: . .SslProtocols> [] () [] []
The protocols that may be used for authentication.
.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.