Пример #1
0
 public JwksActions(
     IGetSetOfPublicKeysUsedToValidateJwsAction getSetOfPublicKeysUsedToValidateJwsAction,
     IGetSetOfPublicKeysUsedByTheClientToEncryptJwsTokenAction getSetOfPublicKeysUsedByTheClientToEncryptJwsTokenAction,
     IRotateJsonWebKeysOperation rotateJsonWebKeysOperation)
 {
     _getSetOfPublicKeysUsedToValidateJwsAction = getSetOfPublicKeysUsedToValidateJwsAction;
     _getSetOfPublicKeysUsedByTheClientToEncryptJwsTokenAction =
         getSetOfPublicKeysUsedByTheClientToEncryptJwsTokenAction;
     _rotateJsonWebKeysOperation = rotateJsonWebKeysOperation;
 }
Пример #2
0
 private void InitializeFakeObjects()
 {
     _jsonWebKeyRepositoryStub   = new Mock <IJsonWebKeyRepository>();
     _rotateJsonWebKeysOperation = new RotateJsonWebKeysOperation(_jsonWebKeyRepositoryStub.Object);
 }