Class FileKey<T>

java.lang.Object
com.dracoon.sdk.crypto.model.FileKey<T>
Direct Known Subclasses:
EncryptedFileKey, PlainFileKey

public abstract class FileKey<T> extends Object
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    FileKey(T version, byte[] key, byte[] iv)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the encryption initialization vector.
    byte[]
    Returns the file key.
    byte[]
    Returns the encryption tag.
    Returns the file key version.
    void
    setTag(byte[] tag)
    Set the encryption tag.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getVersion

      public T 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.