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 SecureRandomnewSha1SecureRandom()static byte[]readParams(DataInputStream in)Read the decryption parameters from the DataInputStreamstatic voidwriteParams(byte[] decryptionParams, DataOutputStream out)Write the decryption parameters to the DataOutputStream
-
-
-
Method Detail
-
newSha1SecureRandom
public static SecureRandom newSha1SecureRandom()
-
readParams
public static byte[] readParams(DataInputStream in) throws IOException
Read the decryption parameters from the DataInputStream- Throws:
IOException
-
writeParams
public static void writeParams(byte[] decryptionParams, DataOutputStream out) throws IOExceptionWrite the decryption parameters to the DataOutputStream- Throws:
IOException
-
-