<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:oasis:names:tc:SAML:ac:ext:tcr" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tcr="urn:oasis:names:tc:SAML:ac:ext:tcr" blockDefault="substitution" finalDefault="extension" version="2.0">
	<xs:annotation>
		<xs:documentation>
      Document title: SAML Authentication Context Extension Schema for Text Based Challenge Response Tokens
      Document identifier: sstc-saml-ac-ext-tcr.xsd
      Location: http://www.oasis-open.org/committees/documents.php?wg_abbrev=security
      Revision history:
      V2.0 (Sept 2006):
    </xs:documentation>
	</xs:annotation>
	<xs:element name="TextBasedChallengeResponseToken" type="tcr:TextBasedChallengeResponseTokenType"/>
<xs:annotation>
			<xs:documentation>This element can only appear as an Extension in PrincipalAuthenticationMechanismType</xs:documentation>
	</xs:annotation>
	<xs:complexType name="TextBasedChallengeResponseTokenType">
		<xs:annotation>
			<xs:documentation>Identifies the type of token and authentication</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="TokenDescription" type="xs:anyURI">
				<xs:annotation>
					<xs:documentation>A URI pointing to descriptive information about the type of text-based challenge response scheme supported by the token</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="TokenParameters" minOccurs="0">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="NumberOfPossibleChallenges" type="xs:positiveInteger">
							<xs:annotation>
								<xs:documentation>The total number of possible challenges represented on the token</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="NumberOfPossibleValues" type="xs:positiveInteger">
							<xs:annotation>
								<xs:documentation>The total number of possible values for each response</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="NumberOfChallenges" type="xs:positiveInteger">
							<xs:annotation>
								<xs:documentation>The number of challenges used in an authentication operation</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="TokenAuthenticated" type="xs:boolean" minOccurs="0">
				<xs:annotation>
					<xs:documentation>An indication of whether the token identity (eg serial number) was checked</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
