Class FileEncryptionUtil


  • public final class FileEncryptionUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BUFFER_SIZE_BYTES  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.InputStream decrypt​(java.lang.String cipherKey, java.io.InputStream encryptedInputStream)  
      static java.lang.String effectiveCipherKey​(PubNub pubNub, java.lang.String cipherKey)  
      static java.io.InputStream encrypt​(java.lang.String cipherKey, java.io.InputStream inputStreamToEncrypt)  
      static byte[] encryptToBytes​(java.lang.String cipherKey, byte[] bytesToEncrypt)  
      • Methods inherited from class java.lang.Object

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

      • effectiveCipherKey

        public static java.lang.String effectiveCipherKey​(PubNub pubNub,
                                                          java.lang.String cipherKey)
      • encryptToBytes

        public static byte[] encryptToBytes​(java.lang.String cipherKey,
                                            byte[] bytesToEncrypt)
                                     throws PubNubException
        Throws:
        PubNubException
      • encrypt

        public static java.io.InputStream encrypt​(java.lang.String cipherKey,
                                                  java.io.InputStream inputStreamToEncrypt)
                                           throws PubNubException
        Throws:
        PubNubException
      • decrypt

        public static java.io.InputStream decrypt​(java.lang.String cipherKey,
                                                  java.io.InputStream encryptedInputStream)
                                           throws PubNubException
        Throws:
        PubNubException