Package org.apache.accumulo.core.crypto
Class CryptoUtils
- java.lang.Object
-
- org.apache.accumulo.core.crypto.CryptoUtils
-
public class CryptoUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description CryptoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CryptoEnvironment
getCryptoEnv(CryptoEnvironment.Scope scope, TableId tableId, DataInputStream in)
static FileDecrypter
getFileDecrypter(CryptoService cs, CryptoEnvironment.Scope scope, TableId tableId, DataInputStream in)
Read the decryption parameters from the DataInputStream and get the FileDecrypter associated with the provided CryptoService and CryptoEnvironment.Scope.static byte[]
readParams(DataInputStream in)
Read the decryption parameters from the DataInputStreamstatic void
writeParams(byte[] decryptionParams, DataOutputStream out)
Write the decryption parameters to the DataOutputStream
-
-
-
Method Detail
-
readParams
public static byte[] readParams(DataInputStream in) throws IOException
Read the decryption parameters from the DataInputStream- Throws:
IOException
-
getFileDecrypter
public static FileDecrypter getFileDecrypter(CryptoService cs, CryptoEnvironment.Scope scope, TableId tableId, DataInputStream in) throws IOException
Read the decryption parameters from the DataInputStream and get the FileDecrypter associated with the provided CryptoService and CryptoEnvironment.Scope.- Throws:
IOException
-
getCryptoEnv
public static CryptoEnvironment getCryptoEnv(CryptoEnvironment.Scope scope, TableId tableId, DataInputStream in) throws IOException
- Throws:
IOException
-
writeParams
public static void writeParams(byte[] decryptionParams, DataOutputStream out) throws IOException
Write the decryption parameters to the DataOutputStream- Throws:
IOException
-
-