Class Certificate

    Definition

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

    Represents a certificate.

    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
    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
    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
    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
    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.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX