| 1 | <?xml version="1.0" encoding="UTF-8"?>
|
|---|
| 2 | <!--
|
|---|
| 3 | Licensed to the Apache Software Foundation (ASF) under one or more
|
|---|
| 4 | contributor license agreements. See the NOTICE file distributed with
|
|---|
| 5 | this work for additional information regarding copyright ownership.
|
|---|
| 6 | The ASF licenses this file to You under the Apache License, Version 2.0
|
|---|
| 7 | (the "License"); you may not use this file except in compliance with
|
|---|
| 8 | the License. You may obtain a copy of the License at
|
|---|
| 9 |
|
|---|
| 10 | http://www.apache.org/licenses/LICENSE-2.0
|
|---|
| 11 |
|
|---|
| 12 | Unless required by applicable law or agreed to in writing, software
|
|---|
| 13 | distributed under the License is distributed on an "AS IS" BASIS,
|
|---|
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|---|
| 15 | See the License for the specific language governing permissions and
|
|---|
| 16 | limitations under the License.
|
|---|
| 17 | -->
|
|---|
| 18 | <xs:schema xmlns="http://www.w3.org/2001/XMLSchema"
|
|---|
| 19 | targetNamespace="http://tomcat.apache.org/xml"
|
|---|
| 20 | xmlns:users="http://tomcat.apache.org/xml"
|
|---|
| 21 | xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|---|
| 22 | elementFormDefault="qualified"
|
|---|
| 23 | attributeFormDefault="unqualified"
|
|---|
| 24 | version="1.0">
|
|---|
| 25 | <xs:element name="tomcat-users">
|
|---|
| 26 | <xs:complexType>
|
|---|
| 27 | <xs:choice minOccurs="0" maxOccurs="unbounded">
|
|---|
| 28 | <xs:element name="role">
|
|---|
| 29 | <xs:complexType>
|
|---|
| 30 | <xs:attribute name="rolename" use="required" type="users:entityname" />
|
|---|
| 31 | <xs:attribute name="description" type="xs:string" />
|
|---|
| 32 | </xs:complexType>
|
|---|
| 33 | </xs:element>
|
|---|
| 34 | <xs:element name="group">
|
|---|
| 35 | <xs:complexType>
|
|---|
| 36 | <xs:attribute name="groupname" use="required" type="users:entityname" />
|
|---|
| 37 | <xs:attribute name="description" type="xs:string" />
|
|---|
| 38 | <xs:attribute name="roles" type="xs:string" />
|
|---|
| 39 | </xs:complexType>
|
|---|
| 40 | </xs:element>
|
|---|
| 41 | <xs:element name="user">
|
|---|
| 42 | <xs:complexType>
|
|---|
| 43 | <xs:attribute name="username" use="required" type="users:entityname" />
|
|---|
| 44 | <xs:attribute name="fullname" type="xs:string" />
|
|---|
| 45 | <xs:attribute name="password" type="xs:string" />
|
|---|
| 46 | <xs:attribute name="roles" type="xs:string" />
|
|---|
| 47 | <xs:attribute name="groups" type="xs:string" />
|
|---|
| 48 | </xs:complexType>
|
|---|
| 49 | </xs:element>
|
|---|
| 50 | </xs:choice>
|
|---|
| 51 | <xs:attribute name="version" type="xs:string" />
|
|---|
| 52 | </xs:complexType>
|
|---|
| 53 | </xs:element>
|
|---|
| 54 | <xs:simpleType name="entityname">
|
|---|
| 55 | <xs:restriction base="xs:string">
|
|---|
| 56 | <xs:minLength value="1"/>
|
|---|
| 57 | </xs:restriction>
|
|---|
| 58 | </xs:simpleType>
|
|---|
| 59 | </xs:schema>
|
|---|