C# Class RiakClient.Auth.RiakSecurityManager

Exibir arquivo Open project: basho/riak-dotnet-client Class Usage Examples

Public Methods

Method Description
ClientCertificateSelectionCallback ( object sender, string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string acceptableIssuers ) : X509Certificate

Callback to select a client certificate for authentication

GetAuthRequest ( ) : RpbAuthReq

Gets the protobuf object for an authentication request

ServerCertificateValidationCallback ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Method used to validate a server certificate

Private Methods

Method Description
EnsureServerCertificateSubject ( string serverCertificateSubject ) : bool

Ensures that the server certificate is for the target host

GetCertificateAuthorityCert ( ) : X509Certificate2

Gets a file containing the certificate authority certificate

GetClientCertificates ( ) : X509CertificateCollection

Returns a collection of client certificates from the configuration setting and local stores

RiakSecurityManager ( string targetHost, IRiakAuthenticationConfiguration authConfig ) : System

Method Details

ClientCertificateSelectionCallback() public method

Callback to select a client certificate for authentication
public ClientCertificateSelectionCallback ( object sender, string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string acceptableIssuers ) : X509Certificate
sender object The sender
targetHost string The host requesting authentication
localCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection The collection of local certificates
remoteCertificate System.Security.Cryptography.X509Certificates.X509Certificate The remote certificate
acceptableIssuers string The collection of acceptable issuers
return System.Security.Cryptography.X509Certificates.X509Certificate

GetAuthRequest() public method

Gets the protobuf object for an authentication request
public GetAuthRequest ( ) : RpbAuthReq
return RpbAuthReq

ServerCertificateValidationCallback() public method

Method used to validate a server certificate
public ServerCertificateValidationCallback ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object The sender
certificate System.Security.Cryptography.X509Certificates.X509Certificate The server certificate
chain System.Security.Cryptography.X509Certificates.X509Chain The X509 certificate chain
sslPolicyErrors SslPolicyErrors The set of errors according to SSL policy
return bool