diff --git a/interfaces/kits/js/@ohos.security.certManager.d.ts b/interfaces/kits/js/@ohos.security.certManager.d.ts index dae2aa5..dbb49b9 100644 --- a/interfaces/kits/js/@ohos.security.certManager.d.ts +++ b/interfaces/kits/js/@ohos.security.certManager.d.ts @@ -22,384 +22,384 @@ import {AsyncCallback} from './basic'; * @permission N/A */ declare namespace CertificateManager { - /** - * Get a list of system root certificates. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param context Indicates the context of the calling interface application. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function getSystemTrustedCertificateList(callback: AsyncCallback) : void; - function getSystemTrustedCertificateList() : Promise; + /** + * Get a list of system root certificates. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param context Indicates the context of the calling interface application. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function getSystemTrustedCertificateList(callback: AsyncCallback) : void; + function getSystemTrustedCertificateList() : Promise; - /** - * Get the detail of system root certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param context Indicates the context of the calling interface application. - * @param certUri Indicates the certificate's name. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function getSystemTrustedCertificate(certUri: string, callback: AsyncCallback) : void; - function getSystemTrustedCertificate(certUri: string) : Promise; + /** + * Get the detail of system root certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param context Indicates the context of the calling interface application. + * @param certUri Indicates the certificate's name. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function getSystemTrustedCertificate(certUri: string, callback: AsyncCallback) : void; + function getSystemTrustedCertificate(certUri: string) : Promise; - /** - * Set the status of root certificates. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param context Indicates the context of the calling interface application. - * @param certUri Indicates the certificate's name. - * @param store Indicates the type of certificate. - * @param status Indicates the status of certificate to be set. - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function setCertificateStatus(certUri: string, store: number, status: boolean, callback: AsyncCallback) : void; - function setCertificateStatus(certUri: string, store: number, status: boolean) : Promise; + /** + * Set the status of root certificates. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param context Indicates the context of the calling interface application. + * @param certUri Indicates the certificate's name. + * @param store Indicates the type of certificate. + * @param status Indicates the status of certificate to be set. + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function setCertificateStatus(certUri: string, store: number, status: boolean, callback: AsyncCallback) : void; + function setCertificateStatus(certUri: string, store: number, status: boolean) : Promise; - /** - * Install the user root certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param certificate Indicates the certificate file. - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function installUserTrustedCertificate(certificate: CertBlob, callback: AsyncCallback) : void; - function installUserTrustedCertificate(certificate: CertBlob,) : Promise; + /** + * Install the user root certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param certificate Indicates the certificate file. + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function installUserTrustedCertificate(certificate: CertBlob, callback: AsyncCallback) : void; + function installUserTrustedCertificate(certificate: CertBlob,) : Promise; - /** - * Uninstall all user root certificates. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function uninstallAllUserTrustedCertificate(callback: AsyncCallback) : void; - function uninstallAllUserTrustedCertificate() : Promise; + /** + * Uninstall all user root certificates. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function uninstallAllUserTrustedCertificate(callback: AsyncCallback) : void; + function uninstallAllUserTrustedCertificate() : Promise; - /** - * Uninstall the specified user root certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param certUri Indicates the certificate's name. - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function uninstallUserTrustedCertificate(certUri: string, callback: AsyncCallback) : void; - function uninstallUserTrustedCertificate(certUri: string) : Promise; + /** + * Uninstall the specified user root certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param certUri Indicates the certificate's name. + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function uninstallUserTrustedCertificate(certUri: string, callback: AsyncCallback) : void; + function uninstallUserTrustedCertificate(certUri: string) : Promise; - /** - * Get a list of user root certificates. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function getUserTrustedCertificateList(callback: AsyncCallback) : void; - function getUserTrustedCertificateList() : Promise; + /** + * Get a list of user root certificates. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function getUserTrustedCertificateList(callback: AsyncCallback) : void; + function getUserTrustedCertificateList() : Promise; - /** - * Get the detail of user root certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param certUri Indicates the certificate's name. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function getUserTrustedCertificate(certUri: string, callback: AsyncCallback) : void; - function getUserTrustedCertificate(certUri: string) : Promise; + /** + * Get the detail of user root certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param certUri Indicates the certificate's name. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function getUserTrustedCertificate(certUri: string, callback: AsyncCallback) : void; + function getUserTrustedCertificate(certUri: string) : Promise; - /** - * Install normal application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keystore Indicates the keystore file with key pair and certificate. - * @param keystorePwd Indicates the password of keystore file. - * @param certAlias Indicates the certificate name inputted by the user. - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function installAppCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, callback: AsyncCallback) : void; - function installAppCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) : Promise; + /** + * Install normal application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keystore Indicates the keystore file with key pair and certificate. + * @param keystorePwd Indicates the password of keystore file. + * @param certAlias Indicates the certificate name inputted by the user. + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function installAppCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, callback: AsyncCallback) : void; + function installAppCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) : Promise; - /** - * Install private application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keystore Indicates the keystore file with key pair and certificate. - * @param keystorePwd Indicates the password of keystore file. - * @param certAlias Indicates the certificate name inputted by the user. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, callback: AsyncCallback) : void; - function installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) : Promise; + /** + * Install private application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keystore Indicates the keystore file with key pair and certificate. + * @param keystorePwd Indicates the password of keystore file. + * @param certAlias Indicates the certificate name inputted by the user. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string, callback: AsyncCallback) : void; + function installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, certAlias: string) : Promise; - /** - * Generate private application certificate locally. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keyAlias Indicates the key alias inputted by the user. - * @param keyProperties Indicates the properties of keys in keystore file. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function generatePrivateCertificate(keyAlias: string, keyProperties: CMKeyProperties, callback: AsyncCallback) : void; - function generatePrivateCertificate(keyAlias: string, keyProperties: CMKeyProperties) : Promise; + /** + * Generate private application certificate locally. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keyAlias Indicates the key alias inputted by the user. + * @param keyProperties Indicates the properties of keys in keystore file. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function generatePrivateCertificate(keyAlias: string, keyProperties: CMKeyProperties, callback: AsyncCallback) : void; + function generatePrivateCertificate(keyAlias: string, keyProperties: CMKeyProperties) : Promise; - /** - * Update private application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param type Indicates the type of the certificate used. - * @param keyUri Indicates key's name. - * @param certificate Indicates the certificate file. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function updatePrivateCertificate(type: string, keyUri: string, certificate: CertBlob, callback: AsyncCallback) : void; - function updatePrivateCertificate(type: string, keyUri: string, certificate: CertBlob) : Promise; + /** + * Update private application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param type Indicates the type of the certificate used. + * @param keyUri Indicates key's name. + * @param certificate Indicates the certificate file. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function updatePrivateCertificate(type: string, keyUri: string, certificate: CertBlob, callback: AsyncCallback) : void; + function updatePrivateCertificate(type: string, keyUri: string, certificate: CertBlob) : Promise; - /** - * Uninstall all application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function uninstallAllAppCertificate(callback: AsyncCallback) : void; - function uninstallAllAppCertificate() : Promise; + /** + * Uninstall all application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function uninstallAllAppCertificate(callback: AsyncCallback) : void; + function uninstallAllAppCertificate() : Promise; - /** - * Uninstall the specified normal application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keyUri Indicates key's name. - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function uninstallAppCertificate(keyUri: string, callback: AsyncCallback) : void; - function uninstallAppCertificate(keyUri: string) : Promise; + /** + * Uninstall the specified normal application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keyUri Indicates key's name. + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function uninstallAppCertificate(keyUri: string, callback: AsyncCallback) : void; + function uninstallAppCertificate(keyUri: string) : Promise; - /** - * Uninstall the specified normal application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keyUri Indicates key's name. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function uninstallPrivateCertificate(keyUri: string, callback: AsyncCallback) : void; - function uninstallPrivateCertificate(keyUri: string) : Promise; + /** + * Uninstall the specified normal application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keyUri Indicates key's name. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function uninstallPrivateCertificate(keyUri: string, callback: AsyncCallback) : void; + function uninstallPrivateCertificate(keyUri: string) : Promise; - /** - * Get a list of normal application certificates. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function getAppCertificateList(callback: AsyncCallback) : void; - function getAppCertificateList() : Promise; + /** + * Get a list of normal application certificates. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function getAppCertificateList(callback: AsyncCallback) : void; + function getAppCertificateList() : Promise; - /** - * Get a list of private application certificates. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function getPrivateCertificateList(callback: AsyncCallback) : void; - function getPrivateCertificateList() : Promise; + /** + * Get a list of private application certificates. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function getPrivateCertificateList(callback: AsyncCallback) : void; + function getPrivateCertificateList() : Promise; - /** - * Get the detail of normal application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keyUri Indicates key's name. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function getAppCertificate(keyUri: string, callback: AsyncCallback) : void; - function getAppCertificate(keyUri: string, ) : Promise; + /** + * Get the detail of normal application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keyUri Indicates key's name. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function getAppCertificate(keyUri: string, callback: AsyncCallback) : void; + function getAppCertificate(keyUri: string, ) : Promise; - /** - * Get the detail of private application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keyUri Indicates key's name. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function getPrivateCertificate(keyUri: string, callback: AsyncCallback) : void; - function getPrivateCertificate(keyUri: string) : Promise; + /** + * Get the detail of private application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keyUri Indicates key's name. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function getPrivateCertificate(keyUri: string, callback: AsyncCallback) : void; + function getPrivateCertificate(keyUri: string) : Promise; - /** - * Authorize the specified application certificate for the specified application. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keyUri Indicates key's name. - * @param clientAppUid Indicates the uid of the authorized application. - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function grantAppCertificate(keyUri: string, clientAppUid: string, callback: AsyncCallback) : void; - function grantAppCertificate(keyUri: string, clientAppUid: string) : Promise; + /** + * Authorize the specified application certificate for the specified application. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keyUri Indicates key's name. + * @param clientAppUid Indicates the uid of the authorized application. + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function grantAppCertificate(keyUri: string, clientAppUid: string, callback: AsyncCallback) : void; + function grantAppCertificate(keyUri: string, clientAppUid: string) : Promise; - /** - * Whether the current application is authorized by the specified application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keyUri Indicates key's name. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function isAuthorizedApp(keyUri: string, callback: AsyncCallback) : void; - function isAuthorizedApp(keyUri: string) : Promise; + /** + * Whether the current application is authorized by the specified application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keyUri Indicates key's name. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function isAuthorizedApp(keyUri: string, callback: AsyncCallback) : void; + function isAuthorizedApp(keyUri: string) : Promise; - /** - * Get the list of applications authorized by the specified certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keyUri Indicates key's name. - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function getAuthorizedAppList(keyUri: string, callback: AsyncCallback) : void; - function getAuthorizedAppList(keyUri: string) : Promise; + /** + * Get the list of applications authorized by the specified certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keyUri Indicates key's name. + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function getAuthorizedAppList(keyUri: string, callback: AsyncCallback) : void; + function getAuthorizedAppList(keyUri: string) : Promise; - /** - * Deauthorize the specified application from the specified application certificate. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param keyUri Indicates key's name. - * @param clientAppUid Indicates the uid of the deauthorized application. - * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL - * @systemapi Hide this for inner system use - */ - function removeGrantedAppCertificate(keyUri: string, clientAppUid: string, callback: AsyncCallback) : void; - function removeGrantedAppCertificate(keyUri: string, clientAppUid: string) : Promise; + /** + * Deauthorize the specified application from the specified application certificate. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param keyUri Indicates key's name. + * @param clientAppUid Indicates the uid of the deauthorized application. + * @permission ohos.permission.ACCESS_CERT_MANAGER_INTERNAL + * @systemapi Hide this for inner system use + */ + function removeGrantedAppCertificate(keyUri: string, clientAppUid: string, callback: AsyncCallback) : void; + function removeGrantedAppCertificate(keyUri: string, clientAppUid: string) : Promise; - /** - * Init operation for signing and verifying etc. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param authUri Indicates the authorization relationship between application and application certificate. - * @param spec Indicates the properties of the signature and verification.. - * @return The handle of the init Operation. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function init(authUri: string, spec: CMSignatureSpec, callback: AsyncCallback) : void; - function init(authUri: string, spec: CMSignatureSpec) : Promise; + /** + * Init operation for signing and verifying etc. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param authUri Indicates the authorization relationship between application and application certificate. + * @param spec Indicates the properties of the signature and verification.. + * @return The handle of the init Operation. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function init(authUri: string, spec: CMSignatureSpec, callback: AsyncCallback) : void; + function init(authUri: string, spec: CMSignatureSpec) : Promise; - /** - * Update operation for signing and verifying etc. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param handle Indicates the handle of the init operation. - * @param data Indicates the input value. - * @param token Indicates the value of token. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function update(handle: Uint8Array, data: Uint8Array, callback: AsyncCallback) : void; - function update(handle: Uint8Array, data: Uint8Array) : Promise; + /** + * Update operation for signing and verifying etc. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param handle Indicates the handle of the init operation. + * @param data Indicates the input value. + * @param token Indicates the value of token. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function update(handle: Uint8Array, data: Uint8Array, callback: AsyncCallback) : void; + function update(handle: Uint8Array, data: Uint8Array) : Promise; - /** - * Finish operation for signing and verifying etc. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param handle Indicates the handle of the init operation. - * @param signature Indicates the sign data. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function finish(handle: Uint8Array, callback: AsyncCallback) : void; - function finish(handle: Uint8Array, signature: Uint8Array, callback: AsyncCallback) : void; - function finish(handle: Uint8Array, signature?: Uint8Array) : Promise; + /** + * Finish operation for signing and verifying etc. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param handle Indicates the handle of the init operation. + * @param signature Indicates the sign data. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function finish(handle: Uint8Array, callback: AsyncCallback) : void; + function finish(handle: Uint8Array, signature: Uint8Array, callback: AsyncCallback) : void; + function finish(handle: Uint8Array, signature?: Uint8Array) : Promise; - /** - * Abort operation for signing and verifying etc. - * @since 9 - * @syscap SystemCapability.Security.CertificateManager - * @param handle Indicates the handle of the init operation. - * @permission ohos.permission.ACCESS_CERT_MANAGER - */ - function abort(handle: Uint8Array, callback: AsyncCallback) : void; - function abort(handle: Uint8Array) : Promise; + /** + * Abort operation for signing and verifying etc. + * @since 9 + * @syscap SystemCapability.Security.CertificateManager + * @param handle Indicates the handle of the init operation. + * @permission ohos.permission.ACCESS_CERT_MANAGER + */ + function abort(handle: Uint8Array, callback: AsyncCallback) : void; + function abort(handle: Uint8Array) : Promise; - export interface CertInfo { - uri: string; - certAlias: string; - status: boolean; - issuerName: string; - subjectName: string; - serial: string; - notBefore: string; - notAfter: string; - fingerprintSha256: string; - cert: Uint8Array; - } + export interface CertInfo { + uri: string; + certAlias: string; + status: boolean; + issuerName: string; + subjectName: string; + serial: string; + notBefore: string; + notAfter: string; + fingerprintSha256: string; + cert: Uint8Array; + } - export interface CertAbstract { - uri: string; - certAlias: string; - status: boolean; - subjectName: string; - } + export interface CertAbstract { + uri: string; + certAlias: string; + status: boolean; + subjectName: string; + } - export interface Credential { - type: string; - alias: string; - keyUri: string; - certNum: number; - keyNum: number; - credData:Uint8Array; - } + export interface Credential { + type: string; + alias: string; + keyUri: string; + certNum: number; + keyNum: number; + credData:Uint8Array; + } - export interface CredentialAbstract { - type: string; - alias: string; - keyUri: string; - } + export interface CredentialAbstract { + type: string; + alias: string; + keyUri: string; + } - export interface CertBlob { - inData: Uint8Array; - alias: string; - } + export interface CertBlob { + inData: Uint8Array; + alias: string; + } - export interface CMResult { - certList?: Array; - certInfo?: CertInfo; - credentialList?: Array; - credential?: Credential; - appUidList?: Array; - uri?: string; - outData?: Uint8Array; - isAuth?: boolean; - } + export interface CMResult { + certList?: Array; + certInfo?: CertInfo; + credentialList?: Array; + credential?: Credential; + appUidList?: Array; + uri?: string; + outData?: Uint8Array; + isAuth?: boolean; + } - export interface CMKeyProperties { - type: string; - alg: string; - size: number; - padding: string; - purpose: string; - digest: string; - authType: string; - authTimeout: string; - } + export interface CMKeyProperties { + type: string; + alg: string; + size: number; + padding: string; + purpose: string; + digest: string; + authType: string; + authTimeout: string; + } - export enum CmKeyPurpose { - CM_KEY_PURPOSE_SIGN = 4, - CM_KEY_PURPOSE_VERIFY = 8, - } + export enum CmKeyPurpose { + CM_KEY_PURPOSE_SIGN = 4, + CM_KEY_PURPOSE_VERIFY = 8, + } - export interface CMSignatureSpec { - purpose: CmKeyPurpose; - } + export interface CMSignatureSpec { + purpose: CmKeyPurpose; + } - export interface CMHandle { - handle: Uint8Array; - } + export interface CMHandle { + handle: Uint8Array; + } - export enum CMErrorCode { - CM_SUCCESS = 0, - CM_ERROR_INNER_ERROR = 17500001, - CM_ERROR_NO_PERMISSION = 17500002, - CM_ERROR_NO_FOUND = 17500003, - CM_ERROR_X509_FORMATE = 17500004, - } + export enum CMErrorCode { + CM_SUCCESS = 0, + CM_ERROR_INNER_ERROR = 17500001, + CM_ERROR_NO_PERMISSION = 17500002, + CM_ERROR_NO_FOUND = 17500003, + CM_ERROR_X509_FORMATE = 17500004, + } } export default CertificateManager;