21) DSヘッダーを使用した暗号化
DSヘッダーを使用したセキュリティ文書の生成
API
| Method | URL |
|---|---|
| POST | /api/internal/encryption/header |
Request Header
| Name | Required | Description |
|---|---|---|
| Authorization | required | ユーザー認証手段、JWT値 Authorization: Bearer {JWT}参考 : JWT値は認証/認可サービスを通じて発行されます。 |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| companyId | required | string | 対象文書を使用する会社ID(会社別キー データ照会時に使用) |
| docuKey | required | string | 平文文書暗号化に使用されるユーザーキーで作成されたDocuKey |
| encHeaderInfo | required | string | 暗号化するDSヘッダー情報 (base64Encode) |
| srcFilePath | required | string | 原本一般文書のパス |
| dstFilePath | required | string | 暗号化されたセキュリティ文書のパス |
Response
| Name | Type | Description |
|---|---|---|
| code | int | 0 : 成功 0以外の値 : エラー |
| message | string | "OK" : 成功 その他の値 エラーメッセージ |
Examples
Request
- Body
{
"companyId": "7FDKQsEK-QVGKyXA2-fx1LxIzy-SNIre0s9",
"docuKey" : "UdEOPB2vjsrd0rB9d93blQ==",
"encHeaderInfo" : "eyJlbmNyeXB0ZWQiOnRydWUsImZpbGUiOnsicGF0aCI6IkQ6XF....(생략).....",
"srcFilePath" : "/opt/shieldrm/data/test.xlsx",
"dstFilePath" : "/opt/shieldrm/data/test_enc.xlsx"
}
Response
- 成功
{
"code": 0,
"message" : "OK"
}
Response
- 失敗
[암호화 문서인 경우]
{
"code": 40010,
"message": "File is already encrypted."
}
[SCSL 실패]
{
"code": -61,
"message": "EXCEPTION error"
}