Package com.dracoon.sdk.crypto.model
Class FileKey<T>
java.lang.Object
com.dracoon.sdk.crypto.model.FileKey<T>
- Direct Known Subclasses:
EncryptedFileKey,PlainFileKey
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileKey
- Throws:
IllegalArgumentException
-
-
Method Details
-
getVersion
Returns the file key version.- Returns:
- the version
-
getKey
public byte[] getKey()Returns the file key.- Returns:
- the file key
-
getIv
public byte[] getIv()Returns the encryption initialization vector.- Returns:
- the initialization vector
-
getTag
public byte[] getTag()Returns the encryption tag.- Returns:
- the tag
-
setTag
public void setTag(byte[] tag) Set the encryption tag.- Parameters:
tag- The encryption tag.
-