|
static ICertificateStore | CreateStore (string storePath) |
| Creates a new certificate store object. More...
|
|
static ICertificateStore | CreateStore (string storePath, bool noPrivateKeys) |
| Creates a new certificate store object. More...
|
|
static ICertificateStore | CreateStore (string storeType, string storePath, bool noPrivateKeys) |
| Creates a new certificate store object. More...
|
|
static bool | IsWindowStorePath (string storePath) |
| Determines whether the store path points to a windows certificate store. More...
|
|
static ICertificate | LoadCertificate (byte[] bytes) |
| Initializes a certificate with the DER encoded bytes. More...
|
|
static ICertificate | LoadCertificate (byte[] bytes, string password) |
| Initializes a certificate with the DER encoded bytes. More...
|
|
static ICertificate | LoadCertificate (System.Security.Cryptography.X509Certificates.X509Certificate2 x509) |
| Initializes a certificate with an x509 certificate. More...
|
|
static ICertificate[] | LoadCertificateChain (byte[] bytes) |
| Loads any certificate chain which has been appended the certificate in the byte buffer. More...
|
|
static ICertificate | LoadCertificate (string storeType, string storePath, string subjectName, string thumbprint, bool needPrivateKey) |
| Initializes a certificate with the DER encoded bytes. More...
|
|
static byte[] | GetNonce (int length) |
| Returns a new nonce. More...
|
|
static byte[] | Concat (params byte[][] arrays) |
| Concatinates a list of byte arrays. More...
|
|
static byte[] | PSHA1 (byte[] secret, string label, byte[] data, int offset, int length) |
| Generates a Pseudo random sequence of bits using the P_SHA1 alhorithm. More...
|
|
static byte[] | PSHA256 (byte[] secret, string label, byte[] data, int offset, int length) |
| Generates a Pseudo random sequence of bits using the P_SHA1 alhorithm. More...
|
|
static List< string > | ParseDistinguishedName (string name) |
| Parses a distingushed name. More...
|
|
static bool | FindStringIgnoreCase (IList< string > strings, string target) |
| Checks if the target is in the list. Comparisons ignore case. More...
|
|
static bool | AreDomainsEqual (string domain1, string domain2) |
| Checks if the domains are equal. More...
|
|
static IList< string > | GetDomainsFromCertficate (X509Certificate2 certificate) |
| Extracts the the DNS names specified in the certificate. More...
|
|
static string | GetApplicationUriFromCertficate (X509Certificate2 certificate) |
| Extracts the the application URI specified in the certificate. More...
|
|
static bool | DoesUrlMatchCertificate (X509Certificate2 certificate, Uri endpointUrl) |
| Checks that the domain in the URL provided matches one of the domains in the certificate. More...
|
|
static bool | CompareDistinguishedName (string name1, string name2) |
| Compares two distinguished names. More...
|
|
static bool | CompareDistinguishedName (X509Certificate2 certificate, List< string > parsedName) |
| Compares two distinguished names. More...
|
|
static string | ChangeSubjectNameDelimiter (string name, char delimiter) |
| Changes the delimiter used to seperate fields in a subject name. More...
|
|
static EncryptedData | Encrypt (X509Certificate2 certificate, string securityPolicyUri, byte[] plainText) |
| Encrypts the text using the SecurityPolicyUri and returns the result. More...
|
|
static byte[] | Decrypt (X509Certificate2 certificate, string securityPolicyUri, EncryptedData dataToDecrypt) |
| Decrypts the CipherText using the SecurityPolicyUri and returns the PlainTetx. More...
|
|
static SignatureData | Sign (X509Certificate2 certificate, string securityPolicyUri, byte[] dataToSign) |
| Signs the data using the SecurityPolicyUri and returns the signature. More...
|
|
static bool | Verify (X509Certificate2 certificate, string securityPolicyUri, byte[] dataToVerify, SignatureData signature) |
| Verifies the signature using the SecurityPolicyUri and return true if valid. More...
|
|
static bool | CheckIfProcessHasAdminRights () |
| Checks if the process has admin rights. More...
|
|
static HashAlgorithm | GetHashAlgorithm (ICertificate certificate) |
| Gets the hash algorithm for the certificate. More...
|
|
static ushort | GetHashSize (HashAlgorithm algorithm) |
| Gets the hash size for the hash algorithm. More...
|
|
static ushort | GetHashSize (ICertificate certificate) |
| Gets the hash size for the certificate. More...
|
|
static PublicKeyAlgorithm | GetPublicKeyAlgorithm (ICertificate certificate) |
| Gets the public key algorithm for the certificate. More...
|
|
static ushort | GetPublicKeySize (PublicKeyAlgorithm algorithm) |
| Gets the key size for the public key algorithm. More...
|
|
static ushort | GetPublicKeySize (ICertificate certificate) |
| Gets the key size for the certificate. More...
|
|
static bool | DoesCertificateSupportSecurityPolicy (ICertificate certificate, string securityPolicyUri) |
| Checks if the certificate supports the security policy. More...
|
|
Provides various security related functions.