Class Pkcs12Manager
Definition
- Namespace:
- Tizen.Security.SecureRepository
- Assembly:
- Tizen.Security.SecureRepository.dll
Provides methods for storing and retrieving Pkcs12 contents.
public class Pkcs12Manager : Manager
- Inheritance
Methods
View SourceGet(string, string, string)
Gets Pkcs12 contents from the secure repository.
Declaration
public static Pkcs12 Get(string alias, string keyPassword, string cerificatePassword)
Parameters
Type | Name | Description |
---|---|---|
string | alias | Name of data to retrieve. |
string | keyPassword | Password used in decrypting a private key value. |
string | cerificatePassword | Password used in decrypting a certificate value. |
Returns
Type | Description |
---|---|
Pkcs12 | Pkcs12 data specified by alias. |
Remarks
If password of keyPolicy is provided in SavePkcs12(), the same password should be provided in as keyPassword argument.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
System.ArgumentException | Thrown when |
System.InvalidOperationException | Thrown when Pkcs12 does not exist with given |
Save(string, Pkcs12, Policy, Policy)
Stores PKCS12's contents inside key manager based on provided policies. All items from PKCS12 will use the same alias.
Declaration
public static void Save(string alias, Pkcs12 pkcs12, Policy keyPolicy, Policy certificatePolicy)
Parameters
Type | Name | Description |
---|---|---|
string | alias | Name of a data to be stored. |
Pkcs12 | pkcs12 | pkcs12 data to be stored. |
Policy | keyPolicy | Pkcs' private key storing policy. |
Policy | certificatePolicy | Pkcs' certificate storing policy. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when any provided argument is null. |
System.ArgumentException | Thrown when |
System.InvalidOperationException | Thrown when pkcs12 with given |