public class EncryptionProvider extends Object
Constructor and Description |
---|
EncryptionProvider() |
Modifier and Type | Method and Description |
---|---|
static void |
decrypt(File file,
String keyBase64,
String ivBase64,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat) |
static InputStream |
decryptStream(InputStream inputStream,
String keyBase64,
String ivBase64,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat)
Decrypt a InputStream
|
static CipherInputStream |
encrypt(StorageObjectMetadata meta,
long originalContentLength,
InputStream src,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat,
SnowflakeStorageClient client) |
public static InputStream decryptStream(InputStream inputStream, String keyBase64, String ivBase64, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException, InvalidAlgorithmParameterException
public static void decrypt(File file, String keyBase64, String ivBase64, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException, IOException
public static CipherInputStream encrypt(StorageObjectMetadata meta, long originalContentLength, InputStream src, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, SnowflakeStorageClient client) throws InvalidKeyException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, FileNotFoundException, IllegalBlockSizeException, BadPaddingException
Copyright © 2022. All rights reserved.