|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.security.crypto.DefaultCryptoModule
@Deprecated public class DefaultCryptoModule
This class contains the gritty details around setting up encrypted streams for reading and writing the log file. It obeys the interface CryptoModule, which other developers can implement to change out this logic as necessary.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.accumulo.core.security.crypto.CryptoModule |
---|
CryptoModule.CryptoInitProperty |
Constructor Summary | |
---|---|
DefaultCryptoModule()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCryptoModule()
Method Detail |
---|
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 implementations
IOException
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 implementations
IOException
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 key
public InputStream getDecryptingInputStream(InputStream in, Map<String,String> cryptoOpts, Map<CryptoModule.CryptoInitProperty,Object> cryptoInitParams) throws IOException
CryptoModule
getDecryptingInputStream
in interface CryptoModule
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |