Class Certificate
Definition
- Namespace:
- Tizen.Security.SecureRepository
- Assembly:
- Tizen.Security.SecureRepository.dll
Represents a certificate.
C#Copypublic class Certificate
- Inheritance
-
objectCertificate
Constructors
View Source
Certificate(byte[], DataFormat)
Initializes an instance of Certificate class with a binary and its data format.
Declaration
C#Copypublic Certificate(byte[] binary, DataFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | binary | Binary data of a certificate. |
| DataFormat | format | Format of the binary data. |
Properties
Declaration
C#Copypublic byte[] Binary { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] | Binary value of a certificate. |
Declaration
C#Copypublic DataFormat Format { get; set; }
Property Value
| Type | Description |
|---|---|
| DataFormat | Format of the binary value. |
Methods
Declaration
C#Copypublic static Certificate Load(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath | Path of certificate file to be loaded. |
Returns
| Type | Description |
|---|---|
| Certificate | Loaded certificate class instance. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown when |
| System.InvalidOperationException | Thrown when a certificate has invalid file format. Thrown when provided file path does not exist or cannot be accessed. |