public class EncryptedStorageUtil extends Object
| Constructor and Description |
|---|
EncryptedStorageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SecretKey |
getSignatureKnowledgeKey(char[] password,
byte[] cSignatureKnowledgeSecretKeyBytes,
byte[] salt,
io.getlime.security.powerauth.crypto.lib.generator.KeyGenerator keyGenerator)
Decrypt the KEY_SIGNATURE_KNOWLEDGE key using a provided password.
|
static byte[] |
storeSignatureKnowledgeKey(char[] password,
SecretKey signatureKnowledgeSecretKey,
byte[] salt,
io.getlime.security.powerauth.crypto.lib.generator.KeyGenerator keyGenerator)
Encrypt the KEY_SIGNATURE_KNOWLEDGE key using a provided password.
|
public static byte[] storeSignatureKnowledgeKey(char[] password,
SecretKey signatureKnowledgeSecretKey,
byte[] salt,
io.getlime.security.powerauth.crypto.lib.generator.KeyGenerator keyGenerator)
throws InvalidKeyException,
io.getlime.security.powerauth.crypto.lib.model.exception.GenericCryptoException,
io.getlime.security.powerauth.crypto.lib.model.exception.CryptoProviderException
password - Password to be used for encryption.signatureKnowledgeSecretKey - Original KEY_SIGNATURE_KNOWLEDGE key.salt - Random salt.keyGenerator - Key generator instance.InvalidKeyException - In case invalid key is provided.io.getlime.security.powerauth.crypto.lib.model.exception.CryptoProviderException - In case cryptography provider is initialized incorrectly.io.getlime.security.powerauth.crypto.lib.model.exception.GenericCryptoException - In case any other cryptography error occurs.public static SecretKey getSignatureKnowledgeKey(char[] password, byte[] cSignatureKnowledgeSecretKeyBytes, byte[] salt, io.getlime.security.powerauth.crypto.lib.generator.KeyGenerator keyGenerator) throws InvalidKeyException, io.getlime.security.powerauth.crypto.lib.model.exception.GenericCryptoException, io.getlime.security.powerauth.crypto.lib.model.exception.CryptoProviderException
password - Password to be used for decryption.cSignatureKnowledgeSecretKeyBytes - Encrypted KEY_SIGNATURE_KNOWLEDGE key.salt - Salt that was used for encryption.keyGenerator - Key generator instance.InvalidKeyException - In case invalid key is provided.io.getlime.security.powerauth.crypto.lib.model.exception.CryptoProviderException - In case cryptography provider is initialized incorrectly.io.getlime.security.powerauth.crypto.lib.model.exception.GenericCryptoException - In case any other cryptography error occurs.Copyright © 2016–2020 Wultra s.r.o.. All rights reserved.