| Name | Type | Description |
|---|---|---|
| setProcessLogic | String | 최초 콜백 진입 지점 |
| setCertID | String | 사용자 인증서 식별값 예) "사용자ID@도메인" |
| Name | Type | Description |
|---|---|---|
| cn | String | 기관 키 식별자 |
| username | String | 인증서PEM |
| issuerToName | String | 자세한 유효 기간(끝) |
| oid | String | CRL 배포 지점 |
| policy | String | 인증서 정책 |
| todate | String | 발급자DN |
| validateTo | String | 발급자 |
| validateFrom | String | 발급자 |
| usageToName | String | Description |
| userDN | String | 인증서 정책 |
| issuer | String | 인증서 정책 |
| issuerDN | String | 인증서 정책 |
| serial | String | 일련번호 |
| version | String | 공개키 |
| signatureAlgorithmID | String | 일련번호 |
| publicKey | String | Description |
| keySize | String | Description |
| certPEM | String | Description |
| certHex | String | Description |
| certBase64 | String | 서명 알고리즘 |
| serial | String | Description |
| Name | Type | Description |
|---|---|---|
| authorityKeyID | String | 기관 키 식별자 |
| certPEM | String | 인증서PEM |
| detailValidateTo | String | 자세한 유효 기간(끝) |
| distributionPoints | String | CRL 배포 지점 |
| encryptCertPEM | String | Description |
| issueDN | String | 발급자DN |
| issuer | String | 발급자 |
| issuerToString | String | 발급자 |
| keySize | String | Description |
| policy | String | 인증서 정책 |
| policyToName | String | 인증서 정책 이름 |
| policyToString | String | 인증서 정책 이름 |
| publicKey | String | 공개키 |
| serial | String | 일련번호 |
| signatureAlgorithmID | String | 전자서명 알고리즘 |
| singature | String | 인증서 전자서명 |
| usage | String | 용도 |
| userDN | String | 인증서 DN |
| userKeyID | String | 주체 키 식별자 |
| userPublicKeyAlgorithmID | String | 공개 키 알고리즘 |
| username | String | 이름 |
| validateFrom | String | 유효 기간(시작) |
| validateTo | String | 유효 기간(끝) |
| version | String | 버전 |
| vidRandom | String | 본인 식별 랜덤값 |
function SecuKitNXS_HTML5_Result(cmd, res) {
var Err = 999;
try {
Err = res.ERROR_CODE;
} catch (e) {
console.log(e);
}
if (Err === undefined) {
if(cmd === 'KICA_HTML5_FUNCTION_START') {
html5_ID = res.ID;
html5_IDP = res.password;
switch (processLogic.getProcessLogic()){
case 'Get_CertInfo' :
getWNCertInfo(html5_ID, 'KICA_HTML_CERTINFO_RES', SecuKitNXS_HTML5_Result);
break;
case 'KICA_HTML_CERTINFO_RES' :
$('#cert-info-result').html(JSON.stringify(res, null, 2));
break;
default: break;
}
}
}
}
| Name | Type | Description |
|---|---|---|
| setProcessLogic | String | 최초 콜백 진입 시점 |
| sourceString | String | 전자서명 원문 |
| certType | String | 인증서 Type 선택 1. 서명용 : SignCert 2. 암호화용 : EncryptCert |
| algorithm | String | 전자서명 해시 알고리즘 1. SHA1 2. SHA256 3. SHA384 4. SHA512 |
| certID | String | 현재 선택된 인증서 ID certListInfo.getCertID() 함수를 사용 |
| Name | Type | Description |
|---|---|---|
| certID | String | 서명에 사용된 인증서 식별 ID |
| browser | String | 브라우저 인증서 사용 여부 |
| generateSignatureData | String | PKCS1 전자서명값 |
| Name | Type | Description |
|---|---|---|
| generateSignatureData | String | PKCS1 전자서명값 |
function SecuKitNXS_HTML5_Result(cmd, res) {
var Err = 999;
try {
Err = res.ERROR_CODE;
} catch (e) {
console.log(e);
}
if (Err === undefined) {
if(cmd === 'KICA_HTML5_FUNCTION_START') {
html5_ID = res.ID;
html5_IDP = res.password;
switch (processLogic.getProcessLogic()){
case 'KICA_USE_Sign' :
var sourceString = "원문 메시지";
p1Sign(html5_ID, sourceString, html5_IDP, 'KICA_HTML_P1SIGN_RES', SecuKitNXS_HTML5_Result);
break;
case 'KICA_HTML_P1SIGN_RES' :
$('#p1-sign-result').html(JSON.stringify(res, null, 2));
break;
default: break;
}
}
}
}
| Name | Type | Description |
|---|---|---|
| setProcessLogic | String | 최초 콜백 진입 시점 |
| sourceString | String | 전자서명 원문 |
| certType | String | 인증서 Type 선택 1. 서명용 : SignCert 2. 암호화용 : EncryptCert |
| certID | String | 현재 선택된 인증서 ID certListInfo.getCertID() 함수를 사용 |
| Name | Type | Description |
|---|---|---|
| certID | String | 서명에 사용된 인증서 식별 ID |
| browser | String | 브라우저 인증서 사용 여부 |
| generatePKCS7SignedData | String | PKCS7 전자서명값 |
| Name | Type | Description |
|---|---|---|
| generatePKCS7SignedData | String | PKCS7 전자서명값 |
function SecuKitNXS_HTML5_Result(cmd, res) {
var Err = 999;
try {
Err = res.ERROR_CODE;
} catch (e) {
console.log(e);
}
if (Err === undefined) {
if(cmd === 'KICA_HTML5_FUNCTION_START') {
html5_ID = res.ID;
html5_IDP = res.password;
switch (processLogic.getProcessLogic()){
case 'KICA_USE_P7Sign' :
var sourceString = "전자서명 원문 데이터입니다.";
p7Sign(html5_ID, html5_IDP, sourceString, 'KICA_HTML_P7SIGN_RES', SecuKitNXS_HTML5_Result);
break;
case 'KICA_HTML_P7SIGN_RES' :
$('#p7-sign-result').html(JSON.stringify(res, null, 2));
break;
default: break;
}
}
}
}
| Name | Type | Description |
|---|---|---|
| setProcessLogic | String | 최초 콜백 진입 시점 |
| sourceString | String | PKCS7 전자서명 결과값 |
| certType | String | 인증서 Type 선택 1. 서명용 : SignCert 2. 암호화용 : EncryptCert |
| certID | String | 현재 선택된 인증서 ID certListInfo.getCertID() 함수를 사용 |
| Name | Type | Description |
|---|---|---|
| certID | String | 서명에 사용된 인증서 식별 ID |
| browser | String | 브라우저 인증서 사용 여부 |
| addPKCS7SignedData | String | PKCS7 추가 전자서명값 |
| Name | Type | Description |
|---|---|---|
| addPKCS7SignedData | String | PKCS7 추가 전자서명값 |
function SecuKitNXS_HTML5_Result(cmd, res) {
var Err = 999;
try {
Err = res.ERROR_CODE;
} catch (e) {
console.log(e);
}
if (Err === undefined) {
if(cmd === 'KICA_HTML5_FUNCTION_START') {
html5_ID = res.ID;
html5_IDP = res.password;
switch (processLogic.getProcessLogic()){
case 'KICA_USE_P7Sign' :
var sourceString = "전자서명 원문 데이터입니다.";
p7Sign(html5_ID, html5_IDP, sourceString, 'KICA_HTML_P7AddSIGN_RES', SecuKitNXS_HTML5_Result);
break;
case 'KICA_HTML_P7AddSIGN_RES' :
$('#p7-sign-result').html(JSON.stringify(res, null, 2));
break;
default: break;
}
}
}
}
| Name | Type | Description |
|---|---|---|
| setProcessLogic | String | 최초 콜백 진입 시점 |
| sourceString | String | 전자서명 원문 |
| targetCert | String | 암호화에 사용될 인증서 PEM |
| Name | Type | Description |
|---|---|---|
| certID | String | 서명에 사용된 인증서 식별 ID |
| generatePKCS7EnvelopedData | String | PKCS7 암호화 값 |
| Name | Type | Description |
|---|---|---|
| generatePKCS7EnvelopedData | String | PKCS7 암호화 값 |
function SecuKitNXS_HTML5_Result(cmd, res) {
var Err = 999;
try {
Err = res.ERROR_CODE;
} catch (e) {
console.log(e);
}
if (Err === undefined) {
if(cmd === 'KICA_HTML5_FUNCTION_START') {
html5_ID = res.ID;
html5_IDP = res.password;
switch (processLogic.getProcessLogic()){
case 'KICA_USE_P7Env' :
var targetCert = $("#server-cert").val();
var sourceString = "전자서명 원문 데이터입니다.";
envelop(html5_ID, targetCert, sourceString, 'KICA_USE_P7Env_Result', SecuKitNXS_HTML5_Result);
break;
case 'KICA_USE_P7Env_Result' :
$('#p7-enveloped-result').html(JSON.stringify(res, null, 2));
break;
default: break;
}
}
}
}
| Name | Type | Description |
|---|---|---|
| setProcessLogic | String | 최초 콜백 진입 시점 |
| sourceString | String | 암호화 할 데이터 원문 |
| algorithm | String |
암호화 알고리즘 1. 대칭키 알고리즘 : 'DES', '3DES', 'SEED', 'AES128', 'AES192', 'AES256', 'ARIA128', 'ARIA192', 'ARIA256', 'RC2', 'RC4' 2. 대칭키 암호화 모드 : 'CBC', 'CFB', 'ECB', 'OFB' 3. 대칭키 암호화 패딩 : 'PADDING', 'NOPADDING' 알고리즘 입력 예) 'SEED/CBC/PADDING' |
| KeyName | String | 대칭키 암호화에 쓰일 대칭키의 식별자 |
| Name | Type | Description |
|---|---|---|
| symmetricEncryptData | String | 대칭키로 암호화된 데이터 |
function SecuKitNXS_HTML5_Result(cmd, res) {
var Err = 999;
try {
Err = res.ERROR_CODE;
} catch (e) {
console.log(e);
}
if (Err === undefined) {
if(cmd === 'KICA_HTML5_FUNCTION_START') {
html5_ID = res.ID;
html5_IDP = res.password;
switch (processLogic.getProcessLogic()){
case 'KICA_USE_SymEncData' :
var sourceString = "원문 메시지";
var options = {
charset: "utf8"
}
symmetricEncrypt("seed", "cbc", sourceString, options, "KICA_USE_SymEncData_RES", SecuKitNXS_HTML5_Result);
break;
case 'KICA_USE_SymEncData_RES' :
$('#p7-sign-result').html(JSON.stringify(res, null, 2));
break;
default: break;
}
}
}
}
| Name | Type | Description |
|---|---|---|
| setProcessLogic | String | 최초 콜백 진입 시점 |
| serverCert | String | RSA암호화에 사용할 서버 인증서 PEM |
| rsaVersion | String | RSA암호화에 사용할 RSA의 버전 1. 'V15', 2. 'V21' |
| KeyName | String | 대칭키 암호화에 쓰인 대칭키의 식별자 |
| Name | Type | Description |
|---|---|---|
| getSymmetricKeyIV | String | 서버인증서를 사용해 RSA 암호화한 대칭키/IV |
function SecuKitNXS_HTML5_Result(cmd, res) {
var Err = 999;
try {
Err = res.ERROR_CODE;
} catch (e) {
console.log(e);
}
if (Err === undefined) {
if(cmd === 'KICA_HTML5_FUNCTION_START') {
html5_ID = res.ID;
html5_IDP = res.password;
switch (processLogic.getProcessLogic()){
case 'KICA_USE_SymEncData2' :
var sourceString = "원문 메시지";
var options = {
charset: "utf8"
}
symmetricEncrypt("seed", "cbc", sourceString, options, "KICA_USE_GetSymKeyIV", SecuKitNXS_HTML5_Result);
break;
case 'KICA_USE_GetSymKeyIV' :
var serverCert = $("#server-cert").val();
getEncryptedKey(serverCert, "KICA_USE_GetSymKeyIV_RES", SecuKitNXS_HTML5_Result);
break;
case 'KICA_USE_GetSymKeyIV_RES':
$('#key-data-result').html(JSON.stringify(res, null, 2));
break;
default: break;
}
}
}
}