fjreach-u-key
v0.1.0
Published
## Project setup ``` yarn install fjreach-u-key ```
Downloads
1
Readme
reach-component-template
Project setup
yarn install fjreach-u-key
Usage
import UKeyApi from 'fjreach-u-key'
improt axios from 'axios'
/**
* axios可以为定制过的实例
*/
const uKeyApi = new UKeyApi({ axiosInstance: axios })
API
/**
* 获取容器id
*/
getContainerId: () => Promise<string>;
/**
* 获取UKey中的账号,并验证密码
* @param password
*/
verifyPassword: (password: string) => Promise<any>;
/**
* 获取密码重试剩余次数
*/
getPasswordRetryCount: () => Promise<number>;
/**
* 获取base64证书接口
* @param certType
*/
getCertBase64String: (certType: string) => Promise<string>;
/**
* 获取证书信息接口,需使用base64的加密证书,详见文档3.2.1.9
* @param type
*/
getCertInfo: (type: string) => Promise<string|number>;
/**
* 获取UKey的打开状态(是否输入过密码登录)
*/
getUKeyStatus: () => Promise<boolean>;