Client
Used to send API requests to NCALayer
Fields
Methods
Basic API wrappers around NCALayer API
browseKeyStore
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
fileExtension
string
File extension. Usually: P12
currentDirectory
string
Directory to browse. By default it's home directory
showFileChooser
Argument
Type
Description
fileExtension
string
File extension. Usually: ALL
currentDirectory
string
Directory to browse. By default it's home directory
getKeys
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
password
string
Key container password
type
string
Key type. Available values: AUTH
, SIGN
, ALL
setLocale
Argument
Type
Description
lang
string
Language code. Available values: kk
, ru
, en
getNotBefore
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
getNotAfter
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
getSubjectDN
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
getIssuerDN
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
getRdnByOid
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
oid
string
OID code
oidIndex
number
OID index. Put 0
signPlainData
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
toSign
string
Plain data to be signed
verifyPlainData
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
toVerify
string
Original plain data
signature
string
Signature to be validated
createCMSSignature
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
toSign
string
Plain data to be signed
attached
boolean
Attach data into signature or not
verifyCMSSignature
Argument
Type
Description
toVerify
string
Original plain data
signature
string
Signature to be validated
createCMSSignatureFromFile
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
filePath
string
File path of content to be signed
attached
boolean
Attach data into signature or not
verifyCMSSignatureFromFile
Argument
Type
Description
filePath
string
Original file content
signature
string
Signature to be validated
signXml
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
toSign
string
Raw xml to be signed
verifyXml
Argument
Type
Description
signature
string
Raw signed xml to be validated
signXmlByElementId
Argument
Type
Description
storageName
string
Storage name. Available values: PKCS12
, AKKaztokenStore
, AKKZIDCardStore
, AKEToken72KStore
, AKJaCartaStore
storagePath
string
Path to key container. Usually result of browseKeyStore
keyAlias
string
Key alias extracted from key. See helper extractKeyAlias
password
string
Key container password
toSign
string
Raw xml
elementName
string
Element name to be signed
idAttrName
string
Element attribute
parentElementName
string
Element parent node
verifyXmlByElementId
Argument
Type
Description
signature
string
Raw signed xml to be validated
idAttrName
string
Element attribute
parentElementName
string
Element parent node
getHash
Argument
Type
Description
input
string
Plain data to be hashed
digestAlg
string
Digest algorithm name. Available values: SHA1
, SHA256
, GOST34311
Last updated
Was this helpful?