Table of Contents

Class EncryptionService

Namespace: Casewhere.Runtime.DSL.Services
Assembly: Casewhere.Runtime.dll

public class EncryptionService : IEncryptionService

Inheritance

objectEncryptionService

Implements

IEncryptionService

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Extension Methods

ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<EncryptionService>(EncryptionService)

Constructors

EncryptionService(IDataProtectionProvider)

public EncryptionService(IDataProtectionProvider dataProtectionProvider)

Parameters

dataProtectionProvider IDataProtectionProvider

Methods

Decrypt(string)

public string Decrypt(string cipherText)

Parameters

cipherText string

Returns

string

Decrypt(string, string)

public string Decrypt(string cipherText, string purpose)

Parameters

cipherText string

purpose string

Returns

string

Encrypt(string)

public string Encrypt(string input)

Parameters

input string

Returns

string

Encrypt(IList<Claim>, string)

public string Encrypt(IList<Claim> claims, string worker)

Parameters

claims IList<Claim>

worker string

Returns

string