Mentalis.org Security Library documentation

SecurityOptions Constructor (SecureProtocol, Certificate, ConnectionEnd, CredentialVerification, CertVerifyEventHandler, String, SecurityFlags, SslAlgorithms, CertRequestEventHandler)

Initializes a new instance of the SecurityOptions class.

[Visual Basic]
Overloads Public Sub New( _
   ByVal protocol As SecureProtocol, _
   ByVal cert As Certificate, _
   ByVal entity As ConnectionEnd, _
   ByVal verifyType As CredentialVerification, _
   ByVal verifier As CertVerifyEventHandler, _
   ByVal commonName As String, _
   ByVal flags As SecurityFlags, _
   ByVal allowed As SslAlgorithms, _
   ByVal requestHandler As CertRequestEventHandler _
)
[C#]
public SecurityOptions(
   SecureProtocol protocol,
   Certificate cert,
   ConnectionEnd entity,
   CredentialVerification verifyType,
   CertVerifyEventHandler verifier,
   string commonName,
   SecurityFlags flags,
   SslAlgorithms allowed,
   CertRequestEventHandler requestHandler
);

Parameters

protocol
One of the SecureProtocol values.
cert
A Certificate instance.
entity
One of the ConnectionEnd values.
verifyType
One of the CredentialVerification values.
verifier
The CertVerifyEventHandler delegate.
commonName
The common name of the remote computer. This is usually a domain name.
flags
A bitwise combination of the SecurityFlags values.
allowed
A bitwise combination of the SslAlgorithms values.
requestHandler
The CertRequestEventHandler delegate.

See Also

SecurityOptions Class | SecurityOptions Members | Org.Mentalis.Security.Ssl Namespace | SecurityOptions Constructor Overload List