Package org.apache.accumulo.core.crypto
Class CryptoEnvironmentImpl
- java.lang.Object
-
- org.apache.accumulo.core.crypto.CryptoEnvironmentImpl
-
- All Implemented Interfaces:
CryptoEnvironment
public class CryptoEnvironmentImpl extends Object implements CryptoEnvironment
- Since:
- 2.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.spi.crypto.CryptoEnvironment
CryptoEnvironment.Scope
-
-
Constructor Summary
Constructors Constructor Description CryptoEnvironmentImpl(CryptoEnvironment.Scope scope)
CryptoEnvironmentImpl(CryptoEnvironment.Scope scope, TableId tableId, byte[] decryptionParams)
Construct the crypto environment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<byte[]>
getDecryptionParams()
If decrypting files, get the params read from the file.CryptoEnvironment.Scope
getScope()
Optional<TableId>
getTableId()
If in the TABLE scope, get the tableId.String
toString()
-
-
-
Constructor Detail
-
CryptoEnvironmentImpl
public CryptoEnvironmentImpl(CryptoEnvironment.Scope scope, @Nullable TableId tableId, @Nullable byte[] decryptionParams)
Construct the crypto environment. The decryptionParams can be null.
-
CryptoEnvironmentImpl
public CryptoEnvironmentImpl(CryptoEnvironment.Scope scope)
-
-
Method Detail
-
getScope
public CryptoEnvironment.Scope getScope()
- Specified by:
getScope
in interfaceCryptoEnvironment
-
getTableId
public Optional<TableId> getTableId()
Description copied from interface:CryptoEnvironment
If in the TABLE scope, get the tableId. Will be empty in WAL scope.- Specified by:
getTableId
in interfaceCryptoEnvironment
-
getDecryptionParams
public Optional<byte[]> getDecryptionParams()
Description copied from interface:CryptoEnvironment
If decrypting files, get the params read from the file. Will be empty if encrypting.- Specified by:
getDecryptionParams
in interfaceCryptoEnvironment
-
-