20) DS 암호화용 헤더 추출
DS 헤더를 사용한 암호화 시 사 용될 헤더 추출
API
Method | URL |
---|---|
POST | /api/encryption/header/extract |
Request Body
Name | Required | Type | Description |
---|---|---|---|
licenseKey | required | string | SHIELDRM 관리자 페이지의 연동 앱 관리 메뉴에서 발급 받은 라이선스 입력 |
srcFilePath | required | string | 헤더 추출할 보안 문서 경로 |
Response
Name | Type | Description |
---|---|---|
code | int | 0 : 성공 0 이외의 값 : 에러 |
docuKey | string | 평문 문서 암호화에 사용될 유저키로 만들어진 DocuKey |
encHeaderInfo | string | 보안 문서의 DS 헤더 정보 (base64Encode) |
Examples
Request
- Body
{
"licenseKey": "EFB4-19136-DB9E-201B9",
"srcFilePath": "/opt/shieldrm/data/test.xlsx"
}
Response
- 성공
{
"code": 0,
"docuKey" : "UdEOPB2vjsrd0rB9d93blQ==",
"encHeaderInfo" : "eyJlbmNyeXB0ZWQiOnRydWUsImZpbGUiOnsicGF0aCI6IkQ6XF....(생략)....."
}
Response
- 실패
[일반 문서인 경우]
{
"code": -36,
"message": "Source file is not an encrypted file"
}
[SKMS 실패]
{
"code": 40004,
"message": "Failed extract header",
"detail": "1"
}
[SCSL 실패]
{
"code": -61,
"message": "EXCEPTION error"
}