5.4 Get Locking Key
The getLockingKey
function of BayunCore
class returns locking key along with the keys for signature generation and signature verification for an encryption policy.
The function takes the following parameters :
sessionId : Unique SessionId which is received in the registration/login function response.
encryptionPolicy : BayunEncryptionPolicy determines the key to be used to generate the lockingKey.
keyGenerationPolicy : BayunKeyGenerationPolicy determine the policy to be used to generate the lockingKey.
groupId: GroupId is required if encryptionPolicy is
BayunEncryptionPolicyGroup
. If encryption-policy is other thanBayunEncryptionPolicyGroup
then groupId should be empty string.
The getLockingKey
function returns a struct LockingKeys
.
Last updated
Was this helpful?