Class Certificate

Definition

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

Represents a certificate.

C#
Copy
public class Certificate
Inheritance
object
Certificate

Constructors

View Source

Certificate(byte[], DataFormat)

Initializes an instance of Certificate class with a binary and its data format.

Declaration
C#
Copy
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 Source

Binary

Gets and sets binary value of a certificate.

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

Binary value of a certificate.

View Source

Format

Gets and sets format of the binary value.

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

Format of the binary value.

Methods

View Source

Load(string)

Loads Certificate from the given file path.

Declaration
C#
Copy
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 filePath is null.

System.InvalidOperationException

Thrown when a certificate has invalid file format. Thrown when provided file path does not exist or cannot be accessed.