メインコンテンツまでスキップ

15) SOMファイルの生成

SOMファイルの生成

API

MethodURL
POST/api/som/internal/createFile

Request Header

NameRequiredDescription
Authorizationrequiredユーザー認証手段、JWT値
Authorization: Bearer {JWT}
参考 : JWT値は認証/認可サービスを通じて発行されます。

Request Body

NameRequiredTypeDescription
companyIdrequiredstring対象文書を使用する会社ID
srcFilePathrequiredstring元のファイルの絶対パス
- DSセキュリティ文書はsomファイルの生成をサポートしていません
- その文書がすでに som ファイルである場合、ファイルをコピーした後に成功を返す
dstFilePathrequiredstring生成される外部転送セキュリティファイルの絶対パス
- ファイル拡張子はexeで表記する必要があります。
somSetRightsrequiredarrayStringSLSomFileLinker.DSSOMSetRights() 関数で設定した権限
propertiesrequiredjsonStringdssom.propertiesで設定したオプション
somSetRights
indexTypeDescription
0stringパスワード文字列
- パスワードは英数字のみ可能
1int別名で保存する権限
2int印刷権限
3int読み回数
4int印刷回数
5int破棄権限
6int有効期限
7intOLESOM Viewer サポート
8int画像ビューアのサポート
9intText Viewerのサポート
10intUse UI Version(1, 2(Defaule;DS4.0))
11booleanUse Unicode(true(Default), False)
12string同じPCでのみMACアドレスがオープン可能です。
プロパティ (dssom.properties 参照)
NameTypeDescription
DSKEYENCRYPT_KEYstringSOM生成のための固定キー入力(EKDATA2)
...

Response

NameTypeDescription
codeint0 : 成功
それ以外の値 : エラー
messagestring失敗時のエラーメッセージ

Examples

Request

  • Body
{
"companyId": "7FDKQsEK-QVGKyXA2-fx1LxIzy-SNIre0s9",
"srcFilePath": "D:\\opt\\shieldrm\\data\\test\\test.pptx",
"dstFilePath": "D:\\opt\\shieldrm\\data\\test\\test.exe",
"somSetRights": "[\"1111\",1,1,2,0,1,1,1,0,0,2,true,\"10-FF-E0-7F-06-C6\"]",
"properties": "{\"SiteInfo\":\"\",\"DocUIDWithoutMAC\":0,\"DSKEYENCRYPT_KEY\":\"EhH9NMxViK0XFXho/DEZZg==\",\"useDSvFive\":0,\"useAutoGenDocUID\":1,\"useHashDispersed\":1,\"LimitPwdFail\":0}"
}

Response

  • 成功
{
"code": 0,
"message": "OK"
}
  • 失敗
  • Status code : 500 INTERNAL_SERVER_ERROR
[SDF 컨테이너 모듈(SCSL) 에러]
{
"code": -61,
"message": "EXCEPTION error"
}