Class Certificate
Definition
- Namespace:
- Tizen.Security.SecureRepository
- Assembly:
- Tizen.Security.SecureRepository.dll
The class that represents a certificate.
public class Certificate
- Inheritance
-
objectCertificate
Constructors
View SourceCertificate(byte[], DataFormat)
A constructor of Certificate that takes the binary and its format.
Declaration
public Certificate(byte[] binary, DataFormat format)
Parameters
Type | Name | Description |
---|---|---|
byte[] | binary | The binary data of a certificate. |
DataFormat | format | The format of the binary data. |
Properties
View SourceBinary
The binary value of a certificate.
Declaration
public byte[] Binary { get; set; }
Property Value
Type | Description |
---|---|
byte[] |
Format
The format of the binary value.
Declaration
public DataFormat Format { get; set; }
Property Value
Type | Description |
---|---|
DataFormat |
Methods
View SourceLoad(string)
Loads Certificate from the given file path.
Declaration
public static Certificate Load(string filePath)
Parameters
Type | Name | Description |
---|---|---|
string | filePath | The path of certificate file to be loaded. |
Returns
Type | Description |
---|---|
Certificate | Loaded certificate class instance. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The filePath should not be null |
System.InvalidOperationException | Invalid certificate file format. Provided file path does not exist or cannot be accessed. |