Exemple #1
0
        internal Passphrase(int id, string passkey, DateTime issueDate, User owner)
        {
            this.id = id;

            if (PasskeyRegex.Match(passkey).Success)
            {
                this.passkey = passkey;
            }
            else
            {
                throw new ArgumentException("Parameter should be alphanumeric and exactly 88 characters long.", "passkey");
            }

            this.issueDate  = issueDate;
            this.owner      = owner;
            this.repository = null;
        }
 public EncryptionService(IConfiguration configuration, IPassphraseRepository passphraseRepository)
 {
     this.configuration        = configuration;
     this.passphraseRepository = passphraseRepository;
 }
Exemple #3
0
 public UnlockerController(IPassphraseRepository repository)
 {
     this.repository = repository;
 }
 public UnlockerController(IPassphraseRepository repository)
 {
     this.repository = repository;
 }