-
Notifications
You must be signed in to change notification settings - Fork 188
/
value-policy-must-be-first.xml
39 lines (37 loc) · 1.57 KB
/
value-policy-must-be-first.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2019 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
-->
<valuePolicy oid="81818181-76e0-59e2-8888-3d4f02d3fffb" xsi:type="c:ValuePolicyType" version="0" xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Numeric PIN Policy</name>
<description>A policy useful for generating PIN.</description>
<stringPolicy>
<description>String validation policy</description>
<limitations>
<minLength>4</minLength>
<maxLength>4</maxLength>
<minUniqueChars>2</minUniqueChars>
<checkAgainstDictionary>false</checkAgainstDictionary>
<checkPattern />
<limit>
<description>Numeric characters (first digit - excluding zero)</description>
<minOccurs>1</minOccurs>
<mustBeFirst>true</mustBeFirst>
<characterClass>
<value>9</value>
</characterClass>
</limit>
<limit>
<description>Numeric characters</description>
<mustBeFirst>false</mustBeFirst>
<characterClass>
<value>1234567890</value>
</characterClass>
</limit>
</limitations>
</stringPolicy>
</valuePolicy>