public PermitAllValidatorBuilder()
        {
            P2pkhSubject subject     = new P2pkhSubject(new string[0], 0, new KeyEncoder(0));
            List <Acl>   permissions = new List <Acl>()
            {
                new Acl(new IPermissionSubject[] { subject }, LedgerPath.Parse("/"), true, StringPattern.MatchAll, PermissionSet.AllowAll)
            };

            StaticPermissionLayout layout = new StaticPermissionLayout(permissions);

            this.validator = new PermissionBasedValidator(new[] { layout });
        }
Esempio n. 2
0
        public DenyAllValidatorBuilder()
        {
            StaticPermissionLayout layout = new StaticPermissionLayout(new Acl[0]);

            this.validator = new PermissionBasedValidator(new[] { layout });
        }