This project is read-only.

RandomCharactersAutoInputProtectionTextProvider class

The RandomCharactersAutoInputProtectionTextProvider class is a text provider that generates a string of random characters from a configurable character set.

For more information about text providers, see AIP Providers, Text Providers.

Inheritance Hierarchy

  • AutoInputProtectionTextProvider
    • RandomCharactersAutoInputProtectionTextProvider

Configuration

The following table defines the xml attributes suppored by this class for configuration. The attributes are specified on the add element that registers the provider in the textProviders collection element in your web.config file.

Attribute Name Default Value Type Inherited From Description
colors required System.Drawing.Color list separated by commas AutoInputProtectionTextProvider List of colors that will be sampled at random for each character.
fonts required String list separated by commas AutoInputProtectionTextProvider List of font-family names that will be sampled at random for each character.
minimumFontSize 15 Int32 AutoInputProtectionTextProvider Specifies the minimum random font size for each character, in pixels.
maximumFontSize 25 Int32 AutoInputProtectionTextProvider Specifies the maximum random font size for each character, in pixels.
minimumCharacters 4 Int32 AutoInputProtectionTextProvider Specifies the minimum number of characters.
maximumCharacters 6 Int32 AutoInputProtectionTextProvider Specifies the maximum number of characters.
includedCharacterSets PositiveDigits,UpperCaseLetters CharacterSets enumeration Not Inherited Specifies the set from which each character will be sampled at random. Random duplicates are permitted.
excludedCharacters OoIiBQJj871lSs String Not Inherited Specifies the set of characters that will not be chosen from the includedCharacterSets.

Last edited Apr 23, 2007 at 8:17 PM by davedev, version 2

Comments

No comments yet.