6.4 Get Locking Key
import com.bayun_module.LockingKeys
int encryptionPolicy =encryptionPolicy; //bayunCore.ENCRYPTION_POLICY_DEFAULT
int keyGenerationPolicy =keyGenerationPolicy; //bayunCore.KEY_GENERATION_POLICY_STATIC
String groupId = "<groupId>";
LockingKeys lockingKeys = bayunCore.getLockingKey(encryptionPolicy, keyGenerationPolicy, groupId);
import com.bayun_module.LockingKeys
val encryptionPolicy:Int =encryptionPolicy //bayunCore.ENCRYPTION_POLICY_DEFAULT
val keyGenerationPolicy:Int =keyGenerationPolicy //bayunCore.KEY_GENERATION_POLICY_STATIC
val groupId = "groupId"
var lockingKeys :LockingKeys= bayunCore.getLockingKey(encryptionPolicy, keyGenerationPolicy, groupId)public class LockingKeys {
public String key;//Locking Key
public String signatureKey; //Private Key to be used for signature generation
public String signatureVerificationKey; //Private Key to be used for signature generation
}class LockingKeys {
var key : String? = null //Locking Key
var signatureKey : String? = null //Private Key to be used for signature generation
var signatureVerificationKey : String? = null //Private Key to be used for signature generation
}Last updated