Package com.pubnub.api.vendor
Class FileEncryptionUtil
- java.lang.Object
-
- com.pubnub.api.vendor.FileEncryptionUtil
-
public final class FileEncryptionUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intBUFFER_SIZE_BYTES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.InputStreamdecrypt(java.lang.String cipherKey, java.io.InputStream encryptedInputStream)static java.lang.StringeffectiveCipherKey(PubNub pubNub, java.lang.String cipherKey)static java.io.InputStreamencrypt(java.lang.String cipherKey, java.io.InputStream inputStreamToEncrypt)static byte[]encryptToBytes(java.lang.String cipherKey, byte[] bytesToEncrypt)
-
-
-
Field Detail
-
BUFFER_SIZE_BYTES
public static final int BUFFER_SIZE_BYTES
- See Also:
- Constant Field Values
-
-
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
-
-