Struct EncryptedValue
This struct can be used to "tell" the driver that a specific value should be encrypted before sending it to the server.
You can use this type to effectively use column encryption policies with Simple Statements since the driver can't automatically detect
that a parameter needs to be encrypted when using Simple Statements.
To use this type just call the constructor, e.g.:
new SimpleStatement(__CQL_STATEMENT__, new EncryptedValue(__PARAMETER_VALUE__, __ENCRYPTION_KEY__));
Inherited Members
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Assembly: Cassandra.dll
Syntax
public struct EncryptedValue : IEquatable<EncryptedValue>
Constructors
EncryptedValue(object, object)
Declaration
public EncryptedValue(object value, object encryptionKey)
Parameters
Type |
Name |
Description |
object |
value |
|
object |
encryptionKey |
|
Properties
Key
Declaration
public object Key { get; }
Property Value
Value
Declaration
public object Value { get; }
Property Value
Methods
Equals(EncryptedValue)
Declaration
public bool Equals(EncryptedValue other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
System.ValueType.Equals(object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
System.ValueType.GetHashCode()
Operators
operator ==(EncryptedValue, EncryptedValue)
Declaration
public static bool operator ==(EncryptedValue left, EncryptedValue right)
Parameters
Returns
operator !=(EncryptedValue, EncryptedValue)
Declaration
public static bool operator !=(EncryptedValue left, EncryptedValue right)
Parameters
Returns
Implements
System.IEquatable<T>