|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.CryptoUtils
@InterfaceAudience.Private @InterfaceStability.Unstable public class CryptoUtils
This class provides utilities to make it easier to work with Cryptographic Streams. Specifically for dealing with encrypting intermediate data such MapReduce spill files.
| Constructor Summary | |
|---|---|
CryptoUtils()
|
|
| Method Summary | |
|---|---|
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 |
isShuffleEncrypted(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CryptoUtils()
| Method Detail |
|---|
public static boolean isShuffleEncrypted(org.apache.hadoop.conf.Configuration conf)
public static byte[] createIV(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf -
IOExceptionpublic 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||