public class PowerAuthClientVault extends Object
| Constructor and Description |
|---|
PowerAuthClientVault() |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
decryptDevicePrivateKey(byte[] cDevicePrivateKey,
SecretKey vaultEncryptionKey)
Decrypts original device private key KEY_DEVICE_PRIVATE using the vault
encryption key KEY_ENCRYPTION_VAULT.
|
SecretKey |
decryptVaultEncryptionKey(byte[] cVaultEncryptionKey,
SecretKey masterTransportKey,
long ctr)
Decrypts the vault encryption key KEY_ENCRYPTION_VAULT using a transport key
KEY_ENCRYPTION_VAULT_TRANSPORT.
|
byte[] |
encryptDevicePrivateKey(PrivateKey devicePrivateKey,
SecretKey vaultEncryptionKey)
Encrypts original device private key KEY_DEVICE_PRIVATE using the vault
encryption key KEY_ENCRYPTION_VAULT.
|
public SecretKey decryptVaultEncryptionKey(byte[] cVaultEncryptionKey, SecretKey masterTransportKey, long ctr) throws InvalidKeyException
cVaultEncryptionKey - Encrypted vault encryption key KEY_ENCRYPTION_VAULT.masterTransportKey - Master transport key used for deriving a transport key, used for decrypting vault encryption key.ctr - Counter used for key derivation.InvalidKeyException - In case invalid key is provided.public byte[] encryptDevicePrivateKey(PrivateKey devicePrivateKey, SecretKey vaultEncryptionKey) throws InvalidKeyException
devicePrivateKey - Device private key KEY_DEVICE_PRIVATE.vaultEncryptionKey - Vault encryption key KEY_ENCRYPTION_VAULT.InvalidKeyException - In case invalid key is provided.public PrivateKey decryptDevicePrivateKey(byte[] cDevicePrivateKey, SecretKey vaultEncryptionKey) throws InvalidKeyException
cDevicePrivateKey - Encrypted device private key KEY_DEVICE_PRIVATE.vaultEncryptionKey - Vault encryption key KEY_ENCRYPTION_VAULT.InvalidKeyException - In case invalid key is provided.Copyright © 2016 Lime - HighTech Solutions Inc.. All rights reserved.