C# Class Opc.Ua.SecurityPolicies

Defines constants for key security policies.
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Public Methods

Method Description
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.

Method Details

Decrypt() public static method

Decrypts the CipherText using the SecurityPolicyUri and returns the PlainTetx.
public static Decrypt ( X509Certificate2 certificate, string securityPolicyUri, EncryptedData dataToDecrypt ) : byte[]
certificate X509Certificate2
securityPolicyUri string
dataToDecrypt EncryptedData
return byte[]

Encrypt() public static method

Encrypts the text using the SecurityPolicyUri and returns the result.
public static Encrypt ( X509Certificate2 certificate, string securityPolicyUri, byte plainText ) : EncryptedData
certificate X509Certificate2
securityPolicyUri string
plainText byte
return EncryptedData

GetDisplayName() public static method

Returns a display name for a security policy uri.
public static GetDisplayName ( string policyUri ) : string
policyUri string
return string

GetDisplayNames() public static method

Returns the display names for all security policy uris.
public static GetDisplayNames ( ) : string[]
return string[]

GetUri() public static method

Returns the uri associated with the display name.
public static GetUri ( string displayName ) : string
displayName string
return string

Sign() public static method

Signs the data using the SecurityPolicyUri and returns the signature.
public static Sign ( X509Certificate2 certificate, string securityPolicyUri, byte dataToSign ) : SignatureData
certificate X509Certificate2
securityPolicyUri string
dataToSign byte
return SignatureData

Verify() public static method

Verifies the signature using the SecurityPolicyUri and return true if valid.
public static Verify ( X509Certificate2 certificate, string securityPolicyUri, byte dataToVerify, SignatureData signature ) : bool
certificate X509Certificate2
securityPolicyUri string
dataToVerify byte
signature SignatureData
return bool