@InterfaceAudience.Private @InterfaceStability.Unstable public class CryptoUtils extends Object
Constructor and Description |
---|
CryptoUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
createIV(org.apache.hadoop.conf.Configuration conf)
This method creates and initializes an IV (Initialization Vector)
|
static int |
cryptoPadding(org.apache.hadoop.conf.Configuration conf) |
static boolean |
isEncryptedSpillEnabled(org.apache.hadoop.conf.Configuration conf) |
static org.apache.hadoop.fs.FSDataInputStream |
wrapIfNecessary(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FSDataInputStream in)
Wraps a given FSDataInputStream with a CryptoInputStream.
|
static org.apache.hadoop.fs.FSDataOutputStream |
wrapIfNecessary(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FSDataOutputStream out)
Wraps a given FSDataOutputStream with a CryptoOutputStream.
|
static InputStream |
wrapIfNecessary(org.apache.hadoop.conf.Configuration conf,
InputStream in,
long length)
Wraps a given InputStream with a CryptoInputStream.
|
public static boolean isEncryptedSpillEnabled(org.apache.hadoop.conf.Configuration conf)
public static byte[] createIV(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- IOException
public static int cryptoPadding(org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.fs.FSDataOutputStream wrapIfNecessary(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FSDataOutputStream out) throws IOException
conf
- out
- IOException
public static InputStream wrapIfNecessary(org.apache.hadoop.conf.Configuration conf, InputStream in, long length) throws IOException
conf
- in
- length
- IOException
public static org.apache.hadoop.fs.FSDataInputStream wrapIfNecessary(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FSDataInputStream in) throws IOException
conf
- in
- IOException
Copyright © 2016 Apache Software Foundation. All Rights Reserved.