Ejemplo n.º 1
0
 public IList <EntriesDecrypterResult <PlainTextKey> > Run(DecryptPlainTextEntryWorkflowOptions options)
 {
     if (!IsBuilt)
     {
         throw new EnvCryptException("workflow cannot be run because it has not been built");
     }
     return(_workflow.Run(options));
 }
Ejemplo n.º 2
0
        public IList <EntriesDecrypterResult <PlainTextKey> > Run(DecryptPlainTextEntryWorkflowOptions options)
        {
            Contract.Requires <ArgumentNullException>(options != null, "options");
            Contract.Requires <ArgumentException>(!string.IsNullOrWhiteSpace(options.DatFilePath), "DAT file path cannot be null or whitespace");
            Contract.Requires <ArgumentException>(Contract.ForAll(options.CategoryEntryPair, t => !string.IsNullOrWhiteSpace(t.Category)),
                                                  "none of the category names can be null or whitespace");
            Contract.Requires <ArgumentException>(Contract.ForAll(options.CategoryEntryPair, t => !string.IsNullOrWhiteSpace(t.Entry)),
                                                  "none of the entry names can be null or whitespace");

            Contract.Ensures(Contract.Result <IList <EntriesDecrypterResult <PlainTextKey> > >() != null);

            return(default(IList <EntriesDecrypterResult <PlainTextKey> >));
        }