Exemple #1
0
 public DecryptGenericWorkflowBuilder WithDecryptPlainTextEntryWorkflowBuilder(IDecryptPlainTextEntryWorkflowBuilder builder)
 {
     Contract.Requires <ArgumentNullException>(builder != null, "builder");
     //
     _plaintextWorkFlowBuilder = builder;
     MarkAsNotBuilt();
     return(this);
 }
Exemple #2
0
 public DecryptGenericWorkflowBuilder(IDecryptPlainTextEntryWorkflowBuilder plaintextWorkFlowBuilder, IDecryptRsaEntryWorkflowBuilder rsaWorkFlowBuilder, IDecryptAesEntryWorkflowBuilder aesWorkFlowBuilder)
 {
     Contract.Requires <ArgumentNullException>(plaintextWorkFlowBuilder != null, "plaintextWorkFlowBuilder");
     Contract.Requires <ArgumentNullException>(rsaWorkFlowBuilder != null, "rsaWorkFlowBuilder");
     Contract.Requires <ArgumentNullException>(aesWorkFlowBuilder != null, "aesWorkFlowBuilder");
     //
     _plaintextWorkFlowBuilder = plaintextWorkFlowBuilder;
     _rsaWorkFlowBuilder       = rsaWorkFlowBuilder;
     _aesWorkFlowBuilder       = aesWorkFlowBuilder;
 }
Exemple #3
0
 public DecryptGenericWorkflow(IDatLoader <DatFromFileLoaderOptions> datLoader, IDecryptPlainTextEntryWorkflowBuilder plaintextWorkFlowBuilder, IDecryptRsaEntryWorkflowBuilder rsaWorkFlowBuilder, IDecryptAesEntryWorkflowBuilder aesWorkFlowBuilder)
 {
     Contract.Requires <ArgumentNullException>(datLoader != null, "datLoader");
     Contract.Requires <ArgumentNullException>(plaintextWorkFlowBuilder != null, "plaintextWorkFlowBuilder");
     Contract.Requires <ArgumentNullException>(rsaWorkFlowBuilder != null, "rsaWorkFlowBuilder");
     Contract.Requires <ArgumentNullException>(aesWorkFlowBuilder != null, "aesWorkFlowBuilder");
     //
     _datLoader = new DatLoaderCacheDecorator <DatFromFileLoaderOptions>(datLoader);
     _plaintextWorkFlowBuilder = plaintextWorkFlowBuilder;
     _rsaWorkFlowBuilder       = rsaWorkFlowBuilder;
     _aesWorkFlowBuilder       = aesWorkFlowBuilder;
 }