public void Init() { var crypto = new BouncyCastleCrypto(); _rsaPrivate = crypto.LoadRsaPrivateKey(File.ReadAllText("test-private.key")); _rsaPublic = crypto.LoadRsaPublicKey(File.ReadAllText("test-public.key")); _jwe = new JweService(_rsaPrivate); }
public PersonalController( IPersonalManager personalManager, JweService jweService, IPersonalPresenter personalPresenter, IServiceProvider serviceProvider) : base(serviceProvider) { this.personalManager = personalManager; this.jweService = jweService; this.personalPresenter = personalPresenter; }
public AuthController( DataBaseConnection db, JweService jweService, IAuthManager authManager, IOptions <GlobalOptions> globalOptions, IServiceProvider serviceProvider) : base(serviceProvider) { this.globalOptions = globalOptions.Value; this.db = db; this.jweService = jweService; this.authManager = authManager; }
public AuthController( DataBaseConnection db, JweService jweService, IAuthManager authManager, IOptionsMonitor <UrlPathsOptions> urlsOptions, IOptionsMonitor <GlobalOptions> globalOptions, IServiceProvider serviceProvider) : base(serviceProvider) { this.urlsOptions = urlsOptions; this.globalOptions = globalOptions; this.db = db; this.jweService = jweService; this.authManager = authManager; }