C# Class Ipop.CertificatePolicy

Provides the ability to do https (ssl) transactions via web services and to trust the remote party.
Inheritance: ICertificatePolicy
Mostra file Open project: pstjuste/brunet

Protected Properties

Property Type Description
_certs System.Collections.Hashtable
_old_policy ICertificatePolicy
_sync object

Public Methods

Method Description
CheckValidationResult ( ServicePoint service_point, X509Certificate cert, WebRequest request, int cert_problem ) : bool

Returns true if we have registered the certificate. Calls the next ICertificatePolicy if we fail.

Register ( X509Certificate cert ) : void

Register an x509 certificate.

UnRegister ( X509Certificate cert ) : void

Unregister an x509 certificate.

Private Methods

Method Description
CertificatePolicy ( ) : Brunet

Method Details

CheckValidationResult() public method

Returns true if we have registered the certificate. Calls the next ICertificatePolicy if we fail.
public CheckValidationResult ( ServicePoint service_point, X509Certificate cert, WebRequest request, int cert_problem ) : bool
service_point System.Net.ServicePoint
cert System.Security.Cryptography.X509Certificates.X509Certificate
request System.Net.WebRequest
cert_problem int
return bool

Register() public static method

Register an x509 certificate.
public static Register ( X509Certificate cert ) : void
cert System.Security.Cryptography.X509Certificates.X509Certificate
return void

UnRegister() public static method

Unregister an x509 certificate.
public static UnRegister ( X509Certificate cert ) : void
cert System.Security.Cryptography.X509Certificates.X509Certificate
return void

Property Details

_certs protected_oe static_oe property

protected static Hashtable,System.Collections _certs
return System.Collections.Hashtable

_old_policy protected_oe static_oe property

If we can't return a true for a security exchange, let's pass the request to the default (original) ICertificatePolicy
protected static ICertificatePolicy _old_policy
return ICertificatePolicy

_sync protected_oe static_oe property

protected static object _sync
return object