Package org.apache.drill.exec.rpc
Class EncryptionContextImpl
java.lang.Object
org.apache.drill.exec.rpc.EncryptionContextImpl
- All Implemented Interfaces:
EncryptionContext
Context to help initializing encryption related configurations for a connection.
- encryptionEnabled - identifies if encryption is required or not
- maxWrappedSize - maximum size of the encoded packet that is sent over wire.
Recommended Maximum value is
RpcConstants.MAX_RECOMMENDED_WRAPPED_SIZE
- wrapSizeLimit - Maximum size of plain buffer to be send to wrap call which will produce encrypted buffer <= maxWrappedSize. Get's set after SASL negotiation.
-
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
void
setEncryption
(boolean encryptionEnabled) void
setMaxWrappedSize
(int maxWrappedSize) void
setWrapSizeLimit
(int wrapSizeLimit) toString()
-
Method Details
-
isEncryptionEnabled
public boolean isEncryptionEnabled()- Specified by:
isEncryptionEnabled
in interfaceEncryptionContext
-
setEncryption
public void setEncryption(boolean encryptionEnabled) - Specified by:
setEncryption
in interfaceEncryptionContext
-
getMaxWrappedSize
public int getMaxWrappedSize()- Specified by:
getMaxWrappedSize
in interfaceEncryptionContext
-
setMaxWrappedSize
public void setMaxWrappedSize(int maxWrappedSize) - Specified by:
setMaxWrappedSize
in interfaceEncryptionContext
-
getEncryptionCtxtString
- Specified by:
getEncryptionCtxtString
in interfaceEncryptionContext
-
setWrapSizeLimit
public void setWrapSizeLimit(int wrapSizeLimit) - Specified by:
setWrapSizeLimit
in interfaceEncryptionContext
-
getWrapSizeLimit
public int getWrapSizeLimit()- Specified by:
getWrapSizeLimit
in interfaceEncryptionContext
-
toString
-