Class EncryptionService
Namespace: Casewhere.Runtime.DSL.Services
Assembly: Casewhere.Runtime.dll
public class EncryptionService : IEncryptionService
Inheritance
Implements
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
Decrypt(string, string)
public string Decrypt(string cipherText, string purpose)
Parameters
cipherText
string
purpose
string
Returns
Encrypt(string)
public string Encrypt(string input)
Parameters
input
string
Returns
Encrypt(IList<Claim>, string)
public string Encrypt(IList<Claim> claims, string worker)
Parameters
claims
IList<Claim>
worker
string