Skip to content

Commit

Permalink
adding new policy schema
Browse files Browse the repository at this point in the history
  • Loading branch information
u2000 committed Apr 22, 2014
1 parent 4a4b6c3 commit 6aab6a9
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions schemas/policy/basic_authentication.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!--
~ Copyright (c) 2013, Apigee Corporation. All rights reserved.
~ Apigee(TM) and the Apigee logo are trademarks or
~ registered trademarks of Apigee Corp. or its subsidiaries. All other
~ trademarks are the property of their respective owners.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

<xs:include schemaLocation="stepDefinition.xsd"/>

<xs:complexType name="assignTo">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="createNew" type="xs:boolean"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>

<xs:element name="BasicAuthentication" type="basicAuthStepDefinitionBean"/>

<xs:complexType name="BasicAuthenticationUser">
<xs:sequence/>
<xs:attribute name="ref" type="xs:string" use="required"/>
</xs:complexType>

<xs:complexType name="BasicAuthenticationPassword">
<xs:sequence/>
<xs:attribute name="ref" type="xs:string" use="required"/>
</xs:complexType>

<xs:complexType name="basicAuthStepDefinitionBean">
<xs:complexContent>
<xs:extension base="stepDefinitionType">
<xs:sequence>
<xs:element name="AssignTo" type="assignTo" minOccurs="0"/>
<xs:element name="IgnoreUnresolvedVariables" type="xs:boolean"/>
<xs:element name="Operation" type="Operation"/>
<xs:element name="Password" type="BasicAuthenticationPassword"/>
<xs:element name="User" type="BasicAuthenticationUser"/>
<xs:element name="Source" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>

<xs:simpleType name="Operation">
<xs:restriction base="xs:string">
<xs:enumeration value="Encode"/>
<xs:enumeration value="Decode"/>
</xs:restriction>
</xs:simpleType>

</xs:schema>

0 comments on commit 6aab6a9

Please sign in to comment.