Class Key

Definition

Namespace:
Tizen.Security.SecureRepository
Assembly:
Tizen.Security.SecureRepository.dll

Represents a key.

C#
Copy
public class Key
Inheritance
object
Key

Constructors

View Source

Key(byte[], KeyType, string)

Initializes an instance of Key class with a binary, key type and a binary password.

Declaration
C#
Copy
public Key(byte[] binary, KeyType type, string binaryPassword)
Parameters
Type Name Description
byte[] binary

Binary value of a key.

KeyType type

Key type.

string binaryPassword

Password used to decrypt binary when it's encrypted.

Remarks

The binary may be encrypted with binaryPassword.

Properties

View Source

Binary

Gets and sets binary value of a key.

Declaration
C#
Copy
public byte[] Binary { get; set; }
Property Value
Type Description
byte[]

Binary value of a key.

View Source

BinaryPassword

Gets and sets password.

Declaration
C#
Copy
public string BinaryPassword { get; set; }
Property Value
Type Description
string

Password used to decrypt binary when it's encrypted (Optional).

View Source

Type

Gets and sets key type.

Declaration
C#
Copy
public KeyType Type { get; set; }
Property Value
Type Description
KeyType

Key type.