메소드 | 설명 | |
---|---|---|
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 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 |