org.apache.accumulo.core.security.crypto
@Deprecated public class DefaultCryptoModule extends Object implements CryptoModule
CryptoModule.CryptoInitProperty
Constructor and Description |
---|
DefaultCryptoModule()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getDecryptingInputStream(InputStream in,
Map<String,String> cryptoOpts)
Deprecated.
Wraps an InputStream and returns a decrypting input stream.
|
InputStream |
getDecryptingInputStream(InputStream in,
Map<String,String> cryptoOpts,
Map<CryptoModule.CryptoInitProperty,Object> cryptoInitParams)
Deprecated.
Wraps an InputStream and returns a decrypting input stream.
|
OutputStream |
getEncryptingOutputStream(OutputStream out,
Map<String,String> cryptoOpts)
Deprecated.
Wraps an OutputStream in an encrypting OutputStream.
|
OutputStream |
getEncryptingOutputStream(OutputStream out,
Map<String,String> conf,
Map<CryptoModule.CryptoInitProperty,Object> cryptoInitParams)
Deprecated.
Wraps an OutputStream in an encrypting OutputStream.
|
public OutputStream getEncryptingOutputStream(OutputStream out, Map<String,String> cryptoOpts) throws IOException
CryptoModule
getEncryptingOutputStream
in interface CryptoModule
out
- the OutputStream to wrapcryptoOpts
- the cryptographic parameters to use; specific string names to look for will depend on the various implementationsIOException
public InputStream getDecryptingInputStream(InputStream in, Map<String,String> cryptoOpts) throws IOException
CryptoModule
getDecryptingInputStream
in interface CryptoModule
in
- the InputStream to wrapcryptoOpts
- the cryptographic parameters to use; specific string names to look for will depend on the various implementationsIOException
public OutputStream getEncryptingOutputStream(OutputStream out, Map<String,String> conf, Map<CryptoModule.CryptoInitProperty,Object> cryptoInitParams)
CryptoModule
getEncryptingOutputStream
in interface CryptoModule
out
- the OutputStream to wrapconf
- the cryptographic algorithm configurationcryptoInitParams
- the initialization parameters for the algorithm, usually including initialization vector and session keypublic InputStream getDecryptingInputStream(InputStream in, Map<String,String> cryptoOpts, Map<CryptoModule.CryptoInitProperty,Object> cryptoInitParams) throws IOException
CryptoModule
getDecryptingInputStream
in interface CryptoModule
IOException
Copyright © 2014 Apache Accumulo Project. All Rights Reserved.