Метод | Описание | |
---|---|---|
Decrypt ( X509Certificate2 certificate, string securityPolicyUri, EncryptedData dataToDecrypt ) : byte[] |
Decrypts the CipherText using the SecurityPolicyUri and returns the PlainTetx.
|
|
Encrypt ( X509Certificate2 certificate, string securityPolicyUri, byte plainText ) : EncryptedData |
Encrypts the text using the SecurityPolicyUri and returns the result.
|
|
GetDisplayName ( string policyUri ) : string |
Returns a display name for a security policy uri.
|
|
GetDisplayNames ( ) : string[] |
Returns the display names for all security policy uris.
|
|
GetUri ( string displayName ) : string |
Returns the uri associated with the display name.
|
|
Sign ( X509Certificate2 certificate, string securityPolicyUri, byte dataToSign ) : SignatureData |
Signs the data using the SecurityPolicyUri and returns the signature.
|
|
Verify ( X509Certificate2 certificate, string securityPolicyUri, byte dataToVerify, SignatureData signature ) : bool |
Verifies the signature using the SecurityPolicyUri and return true if valid.
|
public static Decrypt ( X509Certificate2 certificate, string securityPolicyUri, EncryptedData dataToDecrypt ) : byte[] | ||
certificate | X509Certificate2 | |
securityPolicyUri | string | |
dataToDecrypt | EncryptedData | |
Результат | byte[] |
public static Encrypt ( X509Certificate2 certificate, string securityPolicyUri, byte plainText ) : EncryptedData | ||
certificate | X509Certificate2 | |
securityPolicyUri | string | |
plainText | byte | |
Результат | EncryptedData |
public static GetDisplayName ( string policyUri ) : string | ||
policyUri | string | |
Результат | string |
public static GetDisplayNames ( ) : string[] | ||
Результат | string[] |
public static GetUri ( string displayName ) : string | ||
displayName | string | |
Результат | string |
public static Sign ( X509Certificate2 certificate, string securityPolicyUri, byte dataToSign ) : SignatureData | ||
certificate | X509Certificate2 | |
securityPolicyUri | string | |
dataToSign | byte | |
Результат | SignatureData |
public static Verify ( X509Certificate2 certificate, string securityPolicyUri, byte dataToVerify, SignatureData signature ) : bool | ||
certificate | X509Certificate2 | |
securityPolicyUri | string | |
dataToVerify | byte | |
signature | SignatureData | |
Результат | bool |