????????????? ????????? ???????? ???????? (????????) ?? (???), ??????? ???????????? ? ????????? ???????????? ??????.
???????? ????????? ?????????, ??????? ????????? ? ????????? ?? ? ???:
- ??? ??
- ??????? ????????? ??????????? ????? ??????? ??????
- ??????? ????????? ??????????? ????? ??????? ???????
- ??????? ????????? ???????????? ?????????? ? ?????????
- ????? ???????? ??????????? ????? ??????? ???????
- ????? ???????? ??????????? ????? ??????? ??????
- ??????? ?????????? ?????????????? ???????? ??????????? ????? ???????
- ????????? ??????, ??????? ?????????? ?????????
- ??????? ??????????? ?????????? ????????? ????????? ??? ????? ? ??? ?? ???????????
URL-????? ???????
https://local.cipher.kiev.ua:9090/api/v1/ticket/{uuid}/option
?????
PUT
????????? ???????
uuid | String | ????????????? ?????? |
????????????? ????????? ???????
Content-Type | application/json |
????????? JSON ??????? ???????
??? | ??? | ???????? | ?????????? ???????? |
---|---|---|---|
signatureType | String | ??? ?? | attached - ?????????? ??, ?? ???????? ?????? ? ???????????? ??????? * detached - ???????????? ??, ?? ???????? ???????? ?? ??????????? ?????? |
embedSignatureTs | String | ??????? ????????? ??????????? ????? ??????? ??????? | true - ?????????? ??????????? ????? ??????? ??????? ??? ????????? ????????? cadesType ? ????????, ???????? ?? "undefined", ???????? ????????? embedSignatureTs ????????????. |
embedDataTs | String | ??????? ????????? ??????????? ????? ??????? ?????? | true - ?????????? ??????????? ????? ??????? ????? ??? ????????? ????????? cadesType ? ????????, ???????? ?? "undefined", ???????? ????????? embedDataTs ????????????. |
embedCertificateType | String | ??????? ????????? ???????????? ?????????? ? ????????? | signerCert - ????????? ?????? ?????????? ?????????? ??? ????????? ????????? cadesType ? ????????, ???????? ?? "undefined", ???????? ????????? embedCertificateType ????????????. |
signatureTsVerifyOption | String | ????? ???????? ??????????? ????? ??????? ??????? | * ignore - ???????????? ??????????? ????? ??????? |
dataTsVerifyOption | String | ????? ???????? ??????????? ????? ??????? ?????? | * ignore - ???????????? ??????????? ????? ??????? verifyIfPresent - ????????? ??????????? ????? ???????, ???? ??? ???????????? verifyOrFailIfNotPresent - ????????? ??????????? ????? ??????? ? ?????????? ??????, ???? ??? ??????????? |
tsAdditionalVerifying | String | ??????? ?????????? ?????????????? ???????? ??????????? ????? ??????? | true - ????????? ?????????????? ???????? ??????????? ????? ??????? ??????? ? ?????? ??? ???????? ?? ??? ?????????????? ?????????????? ?????????? ? ?????? * false - ?? ????????? ?????????????? ???????? ??????????? ????? ??????? ??? ???????? ?? |
dataToSignQualifier | String | ????????? ??????, ??????? ?????????? ????????? | * notSignedBefore - ?????? ?? ???????? ????? ????????? ??????? alreadySigned - ?????? ??? ???????? ???????, ??? ?????????? ????? ????? ??????????? ????? ????????????? ??????? |
duplicateSign | String | ??????? ??????????? ?????????? ????????? ????????? ??? ????? ? ??? ?? ??????????? | true - ????????? ????? ???????, ???? ???? ???????? ??? ??? ???????? ??????????? |
caId | String | ????????????? ?????/(?)???, ??????? ????? ?????????? ????? ?? ????????? ??????????. | ?????????????? ?????????????? ???????? ?????/(?)??? ?????????? ?????????????? ???????? ? ??????? ??????? ????????? ?????? ?????????????? ?????/(?)??? |
cadesType | String | ?????? ?????????????? ??????????? ??????? ????????? CAdES | undefined - ???????? cadesType ?? ??????????? ??? ???????? ??????????? ??????? ??? ????????? ????????? cadesType ? ????????, ???????? ?? "undefined", ???????? ?????????? embedSignatureTs, embedDataTs, embedCertificateType ????????????. |
nokkCompatible | String | ??????? ??????????????? ??????????? ???????, ????????? ?????????? ???????? ???? | true - ?????????, ??? ??????? ??????? ?????????? ???? ? ????????????? ???????????? ? ASN.1 OCTET STRING * false - ??????????? ??????? ????????????? ??????????? ?????????? |
* - ???????? ?? ?????????
?????
??? ?????? | Content-type | ?????????? ????????? | ?????? ??????????? |
---|---|---|---|
200 | application/json | message | { |
503 | application/json | message | { |
400 | application/json | message | { "message" : "?????? ???????????." } |
????????? JSON ??????? ??????
???????? | ??? ?????? | ???????? |
---|---|---|
message | String | ???????? ?????????? ?????????? ???????? |
settedOptions | Object | ????????? ? ?? ????????, ??????? ???? ??????????? ????? ?????????? ??????? |
?????? ???? ?? JavaScript + jQuery 2.2.4
var selectedOptions = { signatureType: "detached", embedCertificateType: "nothing", embedSignatureTs: "false", embedDataTs: "false", signatureTsVerifyOption: "ignore", dataTsVerifyOption: "ignore" }; $.ajax({ url: "https://local.cipher.kiev.ua:9090/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/option", type: "PUT", dataType: "json", contentType: "application/json", data: JSON.stringify(selectedOptions) }).done(function (jsonResponse, textStatus, xhr) { message = jsonResponse.message; settedOptions = jsonResponse.settedOptions; }).fail(function (xhr) { try { var jsonResponse = JSON.parse(xhr.responseText); message = jsonResponse.message; } catch (e) { message = (xhr.responseText == undefined) ? "?????? ??? ????????? ???????? ??????." : xhr.responseText; } })