Class EncryptionContext
An encryption context.
Inheritance
System.Object
System.Dynamic.DynamicObject
EncryptionContext
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable
Inherited Members
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Cryptography
Assembly: Kephas.Core.dll
Syntax
public class EncryptionContext : Context, IEncryptionContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable
Constructors
| Improve this Doc View SourceEncryptionContext(ICompositionContext, Boolean)
Initializes a new instance of the EncryptionContext class.
Declaration
public EncryptionContext(ICompositionContext compositionContext, bool isThreadSafe = false)
Parameters
Type | Name | Description |
---|---|---|
ICompositionContext | compositionContext | The composition context (optional). |
System.Boolean | isThreadSafe | True if this object is thread safe (optional). |
Properties
| Improve this Doc View SourceKey
Gets or sets the key for encryption/decryption.
Declaration
public byte[] Key { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] | The key. |
KeySize
Gets or sets the size of the key.
Declaration
public int? KeySize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The size of the key. |
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable