Beispiel #1
0
        public static ISaltingServiceProvider GetSaltingServiceProvider(SPMSchemeSaltingType s)
        {
            switch (s)
            {
            case SPMSchemeSaltingType.ADD_ONCE:
                return(new OnceSaltAppender());

            case SPMSchemeSaltingType.ALWAYS:
                return(new SaltAppender());

            case SPMSchemeSaltingType.ODD_ONLY:
                return(new OddOnlySaltAppender());

            case SPMSchemeSaltingType.EVEN_ONLY:
                return(new EvenOnlySaltAppender());

            default:
                return(new SaltAppender());
            }
        }
Beispiel #2
0
 public SPMSchemeField(SPMSchemeField o)
 {
     name        = o.name;
     description = o.description;
     saltingType = o.saltingType;
 }
Beispiel #3
0
 public SPMSchemeField()
 {
     name        = "Default Field";
     description = "No description.";
     saltingType = SPMSchemeSaltingType.ALWAYS;
 }