proget-hq/knox-token
最新稳定版本:0.4.0
Composer 安装命令:
composer require proget-hq/knox-token
包简介
Support library for signing Samsung Knox API access tokens
README 文档
README
Support library for signing Samsung Knox API access tokens
Install
composer require proget-hq/knox-token
Usage
More info at Knox Cloud API Integration Guide
Sign your Client Identifier
use Proget\Samsung\KnoxToken\Certificate; use Proget\Samsung\KnoxToken\KnoxToken; $clientIdentifierJwt = KnoxToken::signClientIdentifier('your-client-identifier', Certificate::fromPath('keys.json'));
Sign your Access Token
use Proget\Samsung\KnoxToken\Certificate; use Proget\Samsung\KnoxToken\KnoxToken; $accessTokenJwt = KnoxToken::signAccessToken('access-token', Certificate::fromPath('keys.json'));
Load certificate
use Proget\Samsung\KnoxToken\Certificate; $certificate = Certificate::fromPath('keys.json'); $certificate->publicKey(); $certificate->privateKeyPem();
License
MIT
统计信息
- 总下载量: 1.35M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-25