Class PowerAuthServerVault
java.lang.Object
io.getlime.security.powerauth.crypto.server.vault.PowerAuthServerVault
Class implementing server-side logic for PowerAuth vault encryption.
- Author:
- Petr Dvorak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]encryptVaultEncryptionKey(PrivateKey serverPrivateKey, PublicKey devicePublicKey) Return encrypted vault encryption key KEY_ENCRYPTION_VAULT using KEY_TRANSPORT.
-
Constructor Details
-
PowerAuthServerVault
public PowerAuthServerVault()
-
-
Method Details
-
encryptVaultEncryptionKey
public byte[] encryptVaultEncryptionKey(PrivateKey serverPrivateKey, PublicKey devicePublicKey) throws InvalidKeyException, GenericCryptoException, CryptoProviderException Return encrypted vault encryption key KEY_ENCRYPTION_VAULT using KEY_TRANSPORT.PowerAuth protocol versions:
- 3.0
- 3.1
- 3.2
- Parameters:
serverPrivateKey- Server private key KEY_SERVER_PRIVATEdevicePublicKey- Device public key KEY_DEVICE_PUBLIC- Returns:
- Encrypted vault encryption key.
- Throws:
InvalidKeyException- In case a provided key is incorrect.GenericCryptoException- In case encryption fails.CryptoProviderException- In case cryptography provider is incorrectly initialized.
-