Package com.dracoon.sdk.crypto.model
Class EncryptedFileKey
java.lang.Object
com.dracoon.sdk.crypto.model.FileKey<EncryptedFileKey.Version>
com.dracoon.sdk.crypto.model.EncryptedFileKey
Encrypted file key model.
This model holds encrypted file key data.
This model holds encrypted file key data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAvailable encrypted file key versions. -
Constructor Summary
ConstructorsConstructorDescriptionEncryptedFileKey(EncryptedFileKey.Version version, byte[] key, byte[] iv) Constructs a new plain file key. -
Method Summary
-
Constructor Details
-
EncryptedFileKey
public EncryptedFileKey(EncryptedFileKey.Version version, byte[] key, byte[] iv) throws IllegalArgumentException Constructs a new plain file key.- Parameters:
version- The file key version.key- The encrypted file key.iv- The encryption initialization vector.- Throws:
IllegalArgumentException- If a parameter is invalid (e.g. null or empty).
-