Beispiel #1
0
 internal CommonMaskProcessor(ModuleDefinition module, PropertyDefinition property, TypeDefinition ofClass, ProtectorAttribute attribute)
     : base(module, property, ofClass, attribute)
 {
 }
Beispiel #2
0
        public static IClassProcessor ForClass(ModuleDefinition module, TypeDefinition @class, ProtectorAttribute attribute)
        {
            if (attribute is XSSGuardAttribute)
            {
                return(new XssProcessor(module, @class));
            }

            return(new DefaultProcessor(module, @class, null));
        }
Beispiel #3
0
 protected MaskProcessor(ModuleDefinition module, PropertyDefinition property, TypeDefinition ofClass, ProtectorAttribute attribute)
 {
     Module     = module;
     Property   = property;
     OfClass    = ofClass;
     _attribute = (MaskAttribute)attribute;
 }
Beispiel #4
0
        public static IPropertyProcessor ForProperty(ModuleDefinition module, TypeDefinition ofClass, PropertyDefinition property, ProtectorAttribute attribute)
        {
            if (attribute is XSSGuardAttribute)
            {
                return(new XssProcessor(module, ofClass, property));
            }
            if (attribute is MaskAttribute)
            {
                return(new CommonMaskProcessor(module, property, ofClass, attribute));
            }

            return(new DefaultProcessor(module, ofClass, property));
        }