# LimitationsType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Definition of complexity and string policy

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
minLength | property int | [0,1] |
maxLength | property int | [0,1] |
minUniqueChars | property int | [0,1] | Minimum number of unique characters in the generated string.
checkAgainstDictionary | property boolean | [0,1] |
checkPattern | property string | [0,1] |
checkExpression | property CheckExpressionType | [0,-1] | Expression that is used to check the resulting value whether it is acceptable or not.
maxAttempts | property int | [0,1] | Maximum number of attempts to generate an expression.
limit | property StringLimitType | [0,-1] |

- ### Items

  - #### minLength

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### maxLength

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### minUniqueChars

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Minimum number of unique characters in the generated string. Defaults to minLength.

  - #### checkAgainstDictionary

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### checkPattern

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### checkExpression

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Expression that is used to check the resulting value whether it is acceptable or not. If the expression returns true, then the value is accepted. If the expression returns false value, then the value is rejected and it will be generated again. Until the maximum number of attempts is reached. If there are several expressions that all of them must pass for the value to be accepted. However each of them may produce a different failure message.

  - #### maxAttempts

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Maximum number of attempts to generate an expression. Attempts are used with limitations that cannot be incorporated directly into the generation algorithm (check expression, pattern, dictionary).

  - #### limit

    Flags: RAM,runtime

    Multiplicity: [0,-1]