Skip to main content

EncryptedMessagesFeature

Assembly: ServiceStack.dll
View Source
Declaration
public class EncryptedMessagesFeature : IPlugin, IHasStringId, IHasId<string>

Properties

Id

View Source
Declaration
public string Id { get; set; }

PrivateKey

View Source
Declaration
public RSAParameters? PrivateKey { get; set; }

FallbackPrivateKeys

View Source
Declaration
public List<RSAParameters> FallbackPrivateKeys { get; set; }

PrivateKeyModulusMap

View Source
Declaration
protected Dictionary<string, RSAParameters> PrivateKeyModulusMap { get; set; }

PublicKeyPath

View Source
Declaration
public string PublicKeyPath { get; set; }

MaxRequestAge

View Source
Declaration
public TimeSpan MaxRequestAge { get; set; }

PrivateKeyXml

View Source
Declaration
public string PrivateKeyXml { get; set; }

Fields

RequestItemsIv

View Source
Declaration
public static readonly string RequestItemsIv

RequestItemsCryptKey

View Source
Declaration
public static readonly string RequestItemsCryptKey

RequestItemsAuthKey

View Source
Declaration
public static readonly string RequestItemsAuthKey

DefaultMaxMaxRequestAge

View Source
Declaration
public static readonly TimeSpan DefaultMaxMaxRequestAge

ErrorInvalidMessage

View Source
Declaration
public static string ErrorInvalidMessage

ErrorNonceSeen

View Source
Declaration
public static string ErrorNonceSeen

ErrorRequestTooOld

View Source
Declaration
public static string ErrorRequestTooOld

ErrorKeyNotFound

View Source
Declaration
public static string ErrorKeyNotFound

Methods

Register(IAppHost)

View Source
Declaration
public void Register(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

WriteEncryptedError(IRequest, Byte[], Byte[], Byte[], Exception, String)

View Source
Declaration
public static async Task WriteEncryptedError(IRequest req, byte[] cryptKey, byte[] authKey, byte[] iv, Exception ex, string description = null)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Byte[]cryptKey
System.Byte[]authKey
System.Byte[]iv
System.Exceptionex
System.Stringdescription

Implements