Свойство | Тип | Описание | |
---|---|---|---|
CertDir | String |
Свойство | Тип | Описание | |
---|---|---|---|
_cas | X509Certificate>.Dictionary | ||
_certificate_verifiers | List |
||
_lc | X509Certificate>.Dictionary | ||
_lc_issuers | List |
||
_local_id | string | ||
_supported_cas | List |
||
_sync | object |
Метод | Описание | |
---|---|---|
AddCACertificate ( Mono.Security.X509.X509Certificate cert ) : bool |
Adds CA certificate to this CH.
|
|
AddCertificate ( string filename ) : bool | ||
AddCertificateVerification ( ICertificateVerification certificate_verifier ) : bool |
Add an ICertificateVerification to be called during verification of certificates
|
|
AddSignedCertificate ( Mono.Security.X509.X509Certificate cert ) : bool |
Adds a local signed public certificate to this CH.
|
|
CertificateHandler ( ) : Brunet | ||
CertificateHandler ( string cert_dir ) : Brunet | ||
CertificateHandler ( string cert_dir, string local_id ) : Brunet | ||
FindCertificate ( List |
Returns the first certificate that matches one of the CAs listed in the array.
|
|
LoadAllCertificates ( ) : void |
Loads all the local certificates.
|
|
ReadCertificate ( string Filename ) : Mono.Security.X509.X509Certificate |
Reads a certificate from a file.
|
|
RemoveCertificateVerification ( ICertificateVerification certificate_verifier ) : bool |
Remove an ICertificateVerification.
|
|
Verify ( Mono.Security.X509.X509Certificate x509, ISender sender ) : bool |
True if this certificate is signed by a CA whose cetificate we have, false otherwise.
|
|
Verify ( Mono.Security.X509.X509Certificate x509, ISender sender, string remote_id ) : bool |
First makes sure we have a CA that supports this certificate, then looks through an x509 certificates SubjectAltName Extension's URI list to determine if the given URI (RemoteID) exists in the certificate.
|
|
Verify ( Mono.Security.X509.X509Certificate x509, string remote_id ) : bool |
Given a string, this looks inside the certificates SANE to see if the string is present. This isn't inefficient as it looks, there tends to be no entries at most of those places, so this usually has runtime of 1. Also this doesn't actually verify any other properties of the certificate, such as being properly signed.
|
public AddCACertificate ( Mono.Security.X509.X509Certificate cert ) : bool | ||
cert | Mono.Security.X509.X509Certificate | |
Результат | bool |
public AddCertificate ( string filename ) : bool | ||
filename | string | |
Результат | bool |
public AddCertificateVerification ( ICertificateVerification certificate_verifier ) : bool | ||
certificate_verifier | ICertificateVerification | |
Результат | bool |
public AddSignedCertificate ( Mono.Security.X509.X509Certificate cert ) : bool | ||
cert | Mono.Security.X509.X509Certificate | |
Результат | bool |
public CertificateHandler ( string cert_dir ) : Brunet | ||
cert_dir | string | |
Результат | Brunet |
public CertificateHandler ( string cert_dir, string local_id ) : Brunet | ||
cert_dir | string | |
local_id | string | |
Результат | Brunet |
public FindCertificate ( List |
||
supported_cas | List |
A list of CAs of which you would like to /// find a certificate that matches. |
Результат | Mono.Security.X509.X509Certificate |
public ReadCertificate ( string Filename ) : Mono.Security.X509.X509Certificate | ||
Filename | string | |
Результат | Mono.Security.X509.X509Certificate |
public RemoveCertificateVerification ( ICertificateVerification certificate_verifier ) : bool | ||
certificate_verifier | ICertificateVerification | |
Результат | bool |
public Verify ( Mono.Security.X509.X509Certificate x509, ISender sender ) : bool | ||
x509 | Mono.Security.X509.X509Certificate | |
sender | ISender | |
Результат | bool |
public Verify ( Mono.Security.X509.X509Certificate x509, ISender sender, string remote_id ) : bool | ||
x509 | Mono.Security.X509.X509Certificate | The certificate to check |
sender | ISender | |
remote_id | string | |
Результат | bool |
static public Verify ( Mono.Security.X509.X509Certificate x509, string remote_id ) : bool | ||
x509 | Mono.Security.X509.X509Certificate | |
remote_id | string | |
Результат | bool |