Class Certificate
Definition
- Namespace:
- Tizen.Security.SecureRepository
- Assembly:
- Tizen.Security.SecureRepository.dll
Represents a certificate.
public class Certificate
- Inheritance
-
objectCertificate
Constructors
View SourceCertificate(byte[], DataFormat)
Initializes an instance of Certificate class with a binary and its data format.
Declaration
public Certificate(byte[] binary, DataFormat format)
Parameters
Type | Name | Description |
---|---|---|
byte[] | binary | Binary data of a certificate. |
DataFormat | format | Format of the binary data. |
Properties
View SourceBinary
Gets and sets binary value of a certificate.
Declaration
public byte[] Binary { get; set; }
Property Value
Type | Description |
---|---|
byte[] | Binary value of a certificate. |
Format
Gets and sets format of the binary value.
Declaration
public DataFormat Format { get; set; }
Property Value
Type | Description |
---|---|
DataFormat | Format of the binary value. |
Methods
View SourceLoad(string)
Loads Certificate from the given file path.
Declaration
public 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. |