public class ContextProviderEncryptionAdapter extends ContextEncryptionAdapter
| Constructor | Description |
|---|---|
ContextProviderEncryptionAdapter(EncryptionContextProvider provider,
java.lang.String path) |
Following constructor called in case of createPath.
|
ContextProviderEncryptionAdapter(EncryptionContextProvider provider,
java.lang.String path,
byte[] encryptionContext) |
Following constructor called when the encryptionContext of file is known.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
Destroys all the encapsulated fields which are used for creating keys.
|
java.lang.String |
getEncodedContext() |
|
java.lang.String |
getEncodedKey() |
|
java.lang.String |
getEncodedKeySHA() |
public ContextProviderEncryptionAdapter(EncryptionContextProvider provider, java.lang.String path, byte[] encryptionContext) throws java.io.IOException
provider - developer's implementation of EncryptionContextProviderpath - Path for which encryptionContext and encryptionKeys to be stored
in the objectencryptionContext - encryptionContext for the path stored in the backendjava.io.IOException - throws back the exception it receives from the
computeKeys() method call.public ContextProviderEncryptionAdapter(EncryptionContextProvider provider, java.lang.String path) throws java.io.IOException
provider - developer's implementation of EncryptionContextProviderpath - file path for which encryptionContext and encryptionKeys to be
created and storedjava.io.IOException - throws back the exception it receives from the method call
to EncryptionContextProvider object.public java.lang.String getEncodedKey()
getEncodedKey in class ContextEncryptionAdapterpublic java.lang.String getEncodedKeySHA()
getEncodedKeySHA in class ContextEncryptionAdapterpublic java.lang.String getEncodedContext()
getEncodedContext in class ContextEncryptionAdapterpublic void destroy()
ContextEncryptionAdapterdestroy in class ContextEncryptionAdapterCopyright © 2008–2025 Apache Software Foundation. All rights reserved.