Struct ColumnEncryptionMetadata
Utility type used in IColumnEncryptionPolicy to provide the driver with the encryption key and
"real" cql type of the column (the server side type should always be 'blob' for encrypted columns but the type at the application level can be any cql type)
Inherited Members
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Assembly: Cassandra.dll
public struct ColumnEncryptionMetadata : IEquatable<ColumnEncryptionMetadata>
Constructors
Declaration
public ColumnEncryptionMetadata(ColumnTypeCode typeCode, IColumnInfo typeInfo, object key)
Parameters
Declaration
public ColumnEncryptionMetadata(ColumnTypeCode typeCode, object key)
Parameters
Properties
Declaration
public object Key { get; }
Property Value
CQL Type code of the encrypted column at the application level.
The driver will decrypt the encrypted column data and then deserialize it to the type provided here.
You must ensure that you are providing a .NET value that matches this CQL type code when using encrypted parameter values.
Declaration
public ColumnTypeCode TypeCode { get; }
Property Value
This must be provided in addition to TypeCode if the type code refers to 'list','set','map','udt','tuple' or 'custom'.
Each of these cql types has a ColumnInfo class associated with it (e.g. ListColumnInfo for 'list').
Declaration
public IColumnInfo TypeInfo { get; }
Property Value
Methods
Declaration
public bool Equals(ColumnEncryptionMetadata other)
Parameters
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
System.ValueType.Equals(object)
Declaration
public override int GetHashCode()
Returns
Overrides
System.ValueType.GetHashCode()
Operators
Declaration
public static bool operator ==(ColumnEncryptionMetadata left, ColumnEncryptionMetadata right)
Parameters
Returns
Declaration
public static bool operator !=(ColumnEncryptionMetadata left, ColumnEncryptionMetadata right)
Parameters
Returns
Implements
System.IEquatable<T>