Beispiel #1
0
        public void Execute()
        {
            var encryptionMechanism = encryptionMechanismFactory.CreateEncryptionMechanism();

            encryptionMechanism.Execute();
            Output = encryptionMechanism.Output;
        }
        public override void Execute()
        {
            var encrytionMechanism = encryptionMechanismFactory.CreateEncryptionMechanism(Encoding.UTF8.GetBytes(armorToken));

            encrytionMechanism.Execute();

            ArmorTokenGenerationStepResult = new ArmorTokenGenerationStepResult {
                Output = encrytionMechanism.Output
            };
        }
 public override void Validate(object armorToken)
 {
     encryptionMechanism = encryptionMechanismFactory.CreateEncryptionMechanism((byte[])armorToken);
     base.Validate(armorToken);
 }