Methods
getApiVersion() → {number}
Returns level of API which is used to interact with PC Server
Returns:
API version or 0 if it is unknown
- Type
- number
getDeviceId() → {number}
Get user's rutoken connected device Id
Returns:
User's rutoken connected device Id
- Type
- number
getExpirationDate() → {Date}
Get user's expiration date
Returns:
User's keys expiration date
- Type
- Date
getExtAuthAvailableMethods()
Get Extended authentication methods list for the User
Returns:
Extended authentication methods list
getKeyIndex() → {number}
Returns index of the symmetric key. The indexes start at 1. That is, "1" is assigned for the first symmetric key
generated by the sever. "0" means that the key has no index. All the PCUsers with API version prior to 5 have
zero key index
Returns:
Actual key index or 0 if it is not assigned
- Type
- number
getKeyName() → {String}
Get user's key name
Returns:
User's key name
- Type
- String
getKeyVersion() → {number}
Get PCSDK key version
Returns:
Version of the key
- Type
- number
getPCExternalUrl() → {String}
Get PCSDK External Server URL
Returns:
PCSDK External Server URL
- Type
- String
getPublicKey() → {String}
Get User's public key in ASN.1 format (in hex)
Returns:
User's public key
- Type
- String
getSystemId() → {String}
Get PCSDK System ID
Returns:
PCSDK System ID
- Type
- String
getSystemName() → {String}
Get PCSDK System Name
Returns:
PCSDK System Name
- Type
- String
getType() → {number}
Type of the user. Type influences which underlying cryptography algorithms are used
Returns:
-1 for all keys prior to PCUser#getKeyVersion === 6
0 for keys using AES/ECDSA ciphering/signature algorithms (starting PCUser#getKeyVersion === 6) 1 for keys using GOST ciphering/signature algorithms (starting PCUser#getKeyVersion === 6)
0 for keys using AES/ECDSA ciphering/signature algorithms (starting PCUser#getKeyVersion === 6) 1 for keys using GOST ciphering/signature algorithms (starting PCUser#getKeyVersion === 6)
- Type
- number
getUserId() → {String}
Get User ID in PCSDK service
Returns:
User ID
- Type
- String
hasKeyPair()
Check if user has generated key pair
Returns:
true, if key pair exists; false in other case
isActivated() → {boolean}
Check if User is activated
Returns:
Returns true if the user is activated
- Type
- boolean