Class CertificateManager

    Definition

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

    Provides methods that handle certificates.

    public class CertificateManager : Manager
    Inheritance
    object
    Manager
    CertificateManager

    Methods

    View Source

    CheckOcsp(IEnumerable<Certificate>)

    [Obsolete("Please do not use! this will be deprecated")]

    Declaration
    public static OcspStatus CheckOcsp(IEnumerable<Certificate> certificateChain)
    Parameters
    Type Name Description
    IEnumerable<><Certificate> certificateChain

    Valid certificate chain to perform the OCSP check.

    Returns
    Type Description
    OcspStatus

    Status result of the OCSP check.

    View Source

    Get(string, string)

    Gets a certificate from the secure repository.

    Declaration
    public static Certificate Get(string alias, string password)
    Parameters
    Type Name Description
    string alias

    Name of a certificate to be retrieved.

    string password

    Password used in decrypting a certificate value.

    Returns
    Type Description
    Certificate

    Certificate specified by alias.

    Remarks

    If password of policy is provided in SaveCertificate(), the same password should be provided.

    View Source

    GetAliases()

    Gets all aliases of certificates accessible by the client.

    Declaration
    public static IEnumerable<string> GetAliases()
    Returns
    Type Description
    IEnumerable<><string>

    All aliases of certificates accessible by the client.

    View Source

    GetCertificateChain(Certificate, IEnumerable<Certificate>, IEnumerable<Certificate>, bool)

    Verifies a certificate chain and returns that chain using user entered trusted and untrusted CA certificates.

    Declaration
    public static IEnumerable<Certificate> GetCertificateChain(Certificate certificate, IEnumerable<Certificate> untrustedCertificates, IEnumerable<Certificate> trustedCertificates, bool useTrustedSystemCertificates)
    Parameters
    Type Name Description
    Certificate certificate

    Certificate to be verified.

    IEnumerable<><Certificate> untrustedCertificates

    Untrusted CA certificates to be used in verifying a certificate chain.

    IEnumerable<><Certificate> trustedCertificates

    Trusted CA certificates to be used in verifying a certificate chain.

    bool useTrustedSystemCertificates

    Flag indicating the use of the trusted root certificates in the system's certificate storage.

    Returns
    Type Description
    IEnumerable<><Certificate>

    Newly created certificate chain.

    Remarks

    Trusted root certificate of the chain in the system's certificate storage is added to the certificate chain.

    View Source

    GetCertificateChain(Certificate, IEnumerable<Certificate>)

    Verifies a certificate chain and returns that chain.

    Declaration
    public static IEnumerable<Certificate> GetCertificateChain(Certificate certificate, IEnumerable<Certificate> untrustedCertificates)
    Parameters
    Type Name Description
    Certificate certificate

    Certificate to be verified.

    IEnumerable<><Certificate> untrustedCertificates

    Untrusted CA certificates to be used in verifying a certificate chain.

    Returns
    Type Description
    IEnumerable<><Certificate>

    Newly created certificate chain.

    Remarks

    Trusted root certificate of the chain should exist in the system's certificate storage.

    View Source

    Save(string, Certificate, Policy)

    Stores a certificate inside the secure repository based on the provided policy.

    Declaration
    public static void Save(string alias, Certificate cert, Policy policy)
    Parameters
    Type Name Description
    string alias

    Name of a certificate to be stored.

    Certificate cert

    Certificate's binary value to be stored.

    Policy policy

    Certificate storing policy.

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX