summaryrefslogtreecommitdiff
path: root/doc/sw_key.xsd
blob: 27f3d7e119bcc160b0e1e89d015f037aabc5d2ee (plain)
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
40
41
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:element name="DeviceKey" type="DeviceKeyType"></xsd:element>

	<xsd:complexType name="DeviceKeyType">
		<xsd:sequence maxOccurs="1" minOccurs="1">
			<xsd:choice maxOccurs="1" minOccurs="1">
				<xsd:element name="RSAPrivateKey" type="RSAPrivateKeyType"
					maxOccurs="1" minOccurs="1">
				</xsd:element>
			</xsd:choice>
		</xsd:sequence>
		<xsd:attribute name="version" type="xsd:int" use="required"></xsd:attribute>
	</xsd:complexType>

	<xsd:complexType name="RSAPrivateKeyType">
		<xsd:sequence maxOccurs="1" minOccurs="1">
			<xsd:choice maxOccurs="1" minOccurs="1">
				<xsd:element name="PEM"
					type="EncodingPemType" maxOccurs="1" minOccurs="1">
				</xsd:element>
				<xsd:element name="DERBase64"
					type="EncodingDerType" maxOccurs="1" minOccurs="1">
				</xsd:element>
				<xsd:element name="Base64"
					type="EncodingRawType" maxOccurs="1" minOccurs="1">
				</xsd:element>
			</xsd:choice>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:simpleType name="EncodingDerType">
		<xsd:restriction base="xsd:string"></xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="EncodingPemType">
		<xsd:restriction base="xsd:string"></xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="EncodingRawType">
		<xsd:restriction base="xsd:string"></xsd:restriction>
	</xsd:simpleType>
</xsd:schema>