Package 

Interface Encryption

  • All Implemented Interfaces:

    
    public interface Encryption
    
                        

    Represents and object for encrypting/decrypting on-device data storage.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract ByteArray encrypt(ByteArray data) Encrypts an array of bytes and writes into the given OutputStream
      abstract ByteArray decrypt(InputStream inputStream) Decrypts an array of bytes
      abstract ByteArray decrypt(ByteArray data) Decrypts an array of bytes
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • encrypt

         abstract ByteArray encrypt(ByteArray data)

        Encrypts an array of bytes and writes into the given OutputStream

        Parameters:
        data -
        • raw data to encrypt

      • decrypt

         abstract ByteArray decrypt(InputStream inputStream)

        Decrypts an array of bytes

        Parameters:
        inputStream -
        • inputStream with the data to decrypt

      • decrypt

         abstract ByteArray decrypt(ByteArray data)

        Decrypts an array of bytes

        Parameters:
        data -
        • raw ByteArray data to decrypt