Explorar o código

[#222] Removed InfoCard documentation

Matthew Weier O'Phinney %!s(int64=12) %!d(string=hai) anos
pai
achega
5722e3c253

+ 0 - 399
documentation/manual/de/module_specs/Zend_InfoCard-Basics.xml

@@ -1,399 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 24249 -->
-<!-- Reviewed: no -->
-<sect1 id="zend.infocard.basics">
-    <title>Einführung</title>
-
-    <para>
-        Die <classname>Zend_InfoCard</classname> Komponente implementiert die Unterstützung
-        vertrauender Forderungen für Informationskarten. Informationskarten werden für
-        Identitätsmanagement im Internet verwendet und zur Authentifikation von Benutzern auf
-        Webseiten. Die Webseiten bei denen sich die Benutzer im Endeffekt authentifizieren werden
-        <emphasis>vertrauende Seiten</emphasis> genannt.
-    </para>
-
-    <para>
-        Detailierte Informationen über Informationskarten und Ihre Wichtigkeit für Internet
-        Identitätsmetasysteme können im <ulink
-            url="http://www.identityblog.com/">IdentityBlog</ulink> gefunden werden.
-    </para>
-
-    <sect2 id="zend.infocard.basics.theory">
-        <title>Grundsätzliche Theorie der Verwendung</title>
-
-        <para>
-            <classname>Zend_InfoCard</classname> kann auf einem von zwei Wegen verwendet werden:
-            Entweder als Teil der größeren <classname>Zend_Auth</classname> Komponente über den
-            <classname>Zend_InfoCard</classname> Authentifikationsadapter order als eigenständige
-            Komponente. In beiden Fällen kann eine Informationskarte von einem Benutzer angefragt
-            werden durch Verwenden des folgenden <acronym>HTML</acronym> Blocks im eigenen
-            <acronym>HTML</acronym> Anmeldeformular:
-        </para>
-
-        <programlisting language="html"><![CDATA[
-<form action="http://example.com/server" method="POST">
-  <input type='image' src='/images/ic.png' align='center'
-        width='120px' style='cursor:pointer' />
-  <object type="application/x-informationCard"
-          name="xmlToken">
-   <param name="tokenType"
-         value="urn:oasis:names:tc:SAML:1.0:assertion" />
-   <param name="requiredClaims"
-         value="http://.../claims/privatepersonalidentifier
-         http://.../claims/givenname
-         http://.../claims/surname" />
- </object>
-</form>
-]]></programlisting>
-
-        <para>
-            Im obigen Beispiel wird das <property>requiredClaims</property>
-            <emphasis>&lt;param&gt;</emphasis> Tag verwendet um Teile von Informationen zu
-            identifizieren die als Forderung bekannt sind (z.B. der Vorname und Nachname einer
-            Person) welche eine Webseite (genannt "vertrauende Forderung) benötigt um einen Benutzer
-            authentifizieren zu können der eine Informationskarte verwendet. Zur Referenz, ist die
-            komplette <acronym>URI</acronym> (zum Beispiel die <code>givename</code> Anforderung)
-            wie folgt:
-            <filename>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname</filename>
-        </para>
-
-        <para>
-            Wenn das obige <acronym>HTML</acronym> durch einen Benutzer aktiviert wird (angeklickt),
-            zeigt der Browser ein Kartenauswahlprogramm an, welche Ihm nicht nur die
-            Informationskarten anzeigt die den Anforderungen der Seite entsprechen, sondern es auch
-            erlaubt welche Informationskarte verwendet werden soll wenn mehrere den Kriterien
-            entsprechen. Diese Informationskarte wird als <acronym>XML</acronym> Dokument zu der
-            spezifizierten POST <acronym>URL</acronym> übertragen und steht dann zur Bearbeitung der
-            <classname>Zend_InfoCard</classname> Komponente zur Verfügung.
-        </para>
-
-        <para>
-            Beachte das Informationskarten nur zu <acronym>SSL</acronym>-verschlüsselten
-            <acronym>URL</acronym>s <acronym>HTTP</acronym> <acronym>POST</acronym>et werden können.
-            Die Dokumentation des WebServers sollte konsultiert werden für Details zum Einrichten
-            einer <acronym>SSL</acronym> Verschlüsselung.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.auth">
-        <title>Verwendung als Teil von Zend_Auth</title>
-
-        <para>
-            Um diese Komponente als Teil des <classname>Zend_Auth</classname>
-            Authentifikationssystems zu verwenden, muß die angebotene
-            <classname>Zend_Auth_Adapter_InfoCard</classname> verwendet werden (in der standalone
-            Distribution von <classname>Zend_InfoCard</classname> nicht enthalten). Ein Beispiel der
-            Verwendung wird anbei gezeigt:
-        </para>
-
-        <programlisting language="php"><![CDATA[
-<?php
-if (isset($_POST['xmlToken'])) {
-
-    $adapter = new Zend_Auth_Adapter_InfoCard($_POST['xmlToken']);
-
-    $adapter->addCertificatePair('/usr/local/Zend/apache2/conf/server.key',
-                                 '/usr/local/Zend/apache2/conf/server.crt');
-
-    $auth = Zend_Auth::getInstance();
-
-    $result = $auth->authenticate($adapter);
-
-    switch ($result->getCode()) {
-        case Zend_Auth_Result::SUCCESS:
-            $claims = $result->getIdentity();
-            print "Angegebener Name: {$claims->givenname}<br />";
-            print "Vorname: {$claims->surname}<br />";
-            print "Email Adresse: {$claims->emailaddress}<br />";
-            print "PPI: {$claims->getCardID()}<br />";
-            break;
-        case Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID:
-            print "Die angegebenen Daten haben der Überprüfung "
-                . "nicht standgehalten";
-            break;
-        default:
-        case Zend_Auth_Result::FAILURE:
-            print "Bei der Bearbeitung der Angaben trat ein Fehler auf.";
-            break;
-    }
-
-    if (count($result->getMessages()) > 0) {
-        print "<pre>";
-        var_dump($result->getMessages());
-        print "</pre>";
-    }
-
-}
-
-?>
-<hr />
-<div id="login" style="font-family: arial; font-size: 2em;">
-<p>Einfache Anmeldungsdemo</p>
- <form method="post">
-  <input type="submit" value="Login" />
-   <object type="application/x-informationCard" name="xmlToken">
-    <param name="tokenType"
-          value="urn:oasis:names:tc:SAML:1.0:assertion" />
-    <param name="requiredClaims"
-          value="http://.../claims/givenname
-                 http://.../claims/surname
-                 http://.../claims/emailaddress
-                 http://.../claims/privatepersonalidentifier" />
-  </object>
- </form>
-</div>
-]]></programlisting>
-
-        <para>
-            Im obigen Beispiel wurde zuerst eine Instanz von
-            <classname>Zend_Auth_Adapter_InfoCard</classname> erstellt und die durch die
-            Kartenauswahl geschickten <acronym>XML</acronym> Daten an Ihn übergeben. Sobald die
-            Instanz erstellt wurde muß zumindest ein <acronym>SSL</acronym>
-            Zertifizieruntsschlüssel, ein Paar öffentlich/privat der vom Webserver verwendet wird,
-            übergeben werden der mit <acronym>HTTP</acronym> <acronym>POST</acronym> empfangen
-            wurde. Diese Dateien werden verwendet um das Ziel der Information das an den Server
-            geschickt wurde zu überprüfen und sind eine Notwendigkeit wenn Informationskarten
-            verwendet werden.
-        </para>
-
-        <para>
-            Sobald der Adapter konfiguriert wurde können die normalen Fähigkeiten von
-            <classname>Zend_Auth</classname> verwendet werden um das angegebene Token der
-            Informationskarte zu prüfen und den Benutzer, durch Betrachten der Identität die von der
-            <methodname>getIdentity()</methodname> Methode geboten wird, zu authentifizieren.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.standalone">
-        <title>Die Zend_InfoCard Komponente alleine verwenden</title>
-
-        <para>
-            Es ist auch möglich die <classname>Zend_InfoCard</classname> Komponente als
-            alleinstehende Komponente zu verwenden durch direkte Interaktion mit der
-            <classname>Zend_InfoCard</classname> Klasse. Die Verwendung der Zend_InfoCard Klasse ist
-            ähnlich der Verwendung durch die <classname>Zend_Auth</classname> Komponente. Ein
-            Beispiel dieser Verwendung wird anbei gezeigt:
-        </para>
-
-        <programlisting language="php"><![CDATA[
-<?php
-if (isset($_POST['xmlToken'])) {
-    $infocard = new Zend_InfoCard();
-    $infocard->addCertificatePair('/usr/local/Zend/apache2/conf/server.key',
-                                  '/usr/local/Zend/apache2/conf/server.crt');
-
-    $claims = $infocard->process($_POST['xmlToken']);
-
-    if($claims->isValid()) {
-        print "Angegebener Name: {$claims->givenname}<br />";
-        print "Vorname: {$claims->surname}<br />";
-        print "Email Adresse: {$claims->emailaddress}<br />";
-        print "PPI: {$claims->getCardID()}<br />";
-    } else {
-        print "Fehler bei der Prüfung der Identität: {$claims->getErrorMsg()}";
-    }
-}
-?>
-<hr />
-<div id="login" style="font-family: arial; font-size: 2em;">
-<p>Einfache Login Demo</p>
- <form method="post">
-  <input type="submit" value="Login" />
-   <object type="application/x-informationCard" name="xmlToken">
-    <param name="tokenType"
-          value="urn:oasis:names:tc:SAML:1.0:assertion" />
-    <param name="requiredClaims"
-          value="http://.../claims/givenname
-                 http://.../claims/surname
-                 http://.../claims/emailaddress
-                 http://.../claims/privatepersonalidentifier" />
-   </object>
- </form>
-</div>
-]]></programlisting>
-
-        <para>
-            Im obigen Beispiel wird die <classname>Zend_InfoCard</classname> Komponente unabhängig
-            verwendet um den vom Benutzer angebotenen Token zu überprüfen. Die auch mit
-            <classname>Zend_Auth_Adapter_InfoCard</classname>, wird zuerst eine Instanz von
-            <classname>Zend_InfoCard</classname> erstellt und dann ein oder mehrere
-            <acronym>SSL</acronym> Zertifikatschlüssel, ein Paar öffentlich/privat die vom Webserver
-            verwendet werden. Sobald sie konfiguriert ist kann die
-            <methodname>process()</methodname> Methode verwendet werden um die Informationskarte zu
-            bearbeiten und die Ergebnisse zurückzugeben.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.claims">
-        <title>Mit einem Forderungs Objekt arbeiten</title>
-
-        <para>
-            Egal ob die <classname>Zend_InfoCard</classname> Komponente als alleinstehende
-            Komponente oder als Teil von <classname>Zend_Auth</classname> über
-            <classname>Zend_Auth_Adapter_InfoCard</classname> verwendet wird, ist das endgültige
-            Ergebnis der Bearbeitung einer Informationskarte ein
-            <classname>Zend_InfoCard_Claims</classname> Objekt. Dieses Objekt enthält die Annahmen
-            (auch Forderungen genannt) die vom schickenden Benutzer gemacht wurden, basierend auf
-            den Daten die von der Webseite angefragt wurden als sich der Benutzer authentifiziert
-            hat. Wie im obigen Beispiel gezeigt, kann die Gültigkeit der Informationskarte
-            sichergestellt werden indem die <methodname>Zend_InfoCard_Claims::isValid()</methodname>
-            Methode aufgerufen wird. Forderungen ihrerseits können entweder empfangen werden indem
-            auf den gewünschten Identikator zugegriffen wird (z.B. <property>givenname</property>)
-            als eine Eigenschaft des Objekts oder durch die <methodname>getClaim()</methodname>
-            Methode.
-        </para>
-
-        <para>
-            In den meisten Fällen ist es nicht notwendig die <methodname>getClaim()</methodname>
-            Methode zu verwenden. Wenn es <property>requiredClaims</property> trotzdem erfordert das
-            Forderungen von verschiedenen unterschiedlichen Quellen/Namensräumen angefragt werden
-            ist es notwendig diese explizit durch Verwendung dieser Methode zu extrahieren (indem
-            einfach die komplette <acronym>URI</acronym> der Forderung übergeben wird, damit der
-            Wert von der Informationskarte empfangen werden kann). Generell gesprochen, wird die
-            <classname>Zend_InfoCard</classname> Komponente die Standard <acronym>URI</acronym> für
-            Forderungen auf eine Setzen die am häufigsten in der Informationskarte selbst verwendet
-            wird, und damit die vereinfachte Eigenschaft-Zugriffs Methode verwendet werden kann.
-        </para>
-
-        <para>
-            Als Teil des Prüfprozesses ist es am Entwickler die ausgebende Quelle der Forderung zu
-            prüfen die in der Informationskarte enthalten sind, und zu entscheiden ob diese Quelle
-            eine vertrauenswürdige Quelle von Informationen ist. Um das zu tun gibt es die
-            <methodname>getIssuer()</methodname> Methode die im
-            <classname>Zend_InfoCard_Claims</classname> Objekt angeboten wird und die
-            <acronym>URI</acronym> des Ausstellers der Forderung der Informationskarte zurückgibt.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.attaching">
-        <title>Informationskarten an bestehende Konten anhängen</title>
-
-        <para>
-            Es ist möglich Unterstützung für Informationskarten zu einem bestehenden
-            Authentifizierungssystem hinzuzufügen durch Speicherung des privaten persönlichen
-            Identifikators (PPI) zum vorher traditionell-authentifizierten Zugang und zumindest die
-            <filename>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/privatepersonalidentifier</filename>
-            Forderung als Teil der <property>requiredClaims</property> der Anfrage zu inkludieren.
-            Wenn diese Forderung angefragt wird, biete das
-            <classname>Zend_InfoCard_Claims</classname> Objekt einen eideutigen Identifikator für
-            diese spezielle Karte anzubieten die durch den Aufruf der
-            <methodname>getCardID()</methodname> Methode übermittelt wurde.
-        </para>
-
-        <para>
-            Ein Beispiel wie eine Informationskarte an einen traditionell-authentifizierten Zugang
-            angehängt werden kann wird hier gezeigt:
-        </para>
-
-        <programlisting language="php"><![CDATA[
-// ...
-public function submitinfocardAction()
-{
-    if (!isset($_REQUEST['xmlToken'])) {
-        throw new ZBlog_Exception('Verschlüsselter Token erwartet ' .
-                                  'aber nicht übergeben');
-    }
-
-    $infoCard = new Zend_InfoCard();
-    $infoCard->addCertificatePair(SSL_CERTIFICATE_PRIVATE,
-                                  SSL_CERTIFICATE_PUB);
-
-    try {
-        $claims = $infoCard->process($request['xmlToken']);
-    } catch(Zend_InfoCard_Exception $e) {
-        // TODO Fehlerbehandung durch die Anfrage
-        throw $e;
-    }
-
-    if ($claims->isValid()) {
-        $db = ZBlog_Data::getAdapter();
-
-        $ppi = $db->quote($claims->getCardID());
-        $fullname = $db->quote("{$claims->givenname} {$claims->surname}");
-
-        $query = "UPDATE blogusers
-                     SET ppi = $ppi,
-                         real_name = $fullname
-                   WHERE username='administrator'";
-
-        try {
-            $db->query($query);
-        } catch(Exception $e) {
-            // TODO Fehler beim Speichern in der DB
-        }
-
-        $this->view->render();
-        return;
-    } else {
-        throw new
-            ZBlog_Exception("Informationskarte hat die Sicherheitsprüfungen "
-                          . "nicht bestanden");
-    }
-}
-]]></programlisting>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.adapters">
-        <title>Erstellung von Zend_InfoCard Adapter</title>
-
-        <para>
-            Die <classname>Zend_InfoCard</classname> Komponente wurde entwickelt um den Wachstum im
-            Standard der Informationskarten durch die Verwendung einer modularen Architektur zu
-            erlauben. Aktuell werden viele dieser Hooks nicht verwendet und können ignoriert werden.
-            Aber es gibt einen Aspekt der in jeder seriösen Implementation von Informationskarten
-            geschrieben werden sollte: Der <classname>Zend_InfoCard</classname> Adapter.
-        </para>
-
-        <para>
-            Der <classname>Zend_InfoCard</classname> Adapter wird als Callback Mechanismus innerhalb
-            der Komponente verwendet um verschiedenste Aufgaben durchzuführen, wie das Speichern und
-            Empfangen von Assertion IDs für Informationskarten wenn diese von der Komponente
-            bearbeitet werden. Wärend das Speichern der Assertion IDs von übertragenen
-            Informationskarten nicht notwendig ist, kann das nicht Durchführen die Möglichkeit
-            eröffnen, dass das Authentifizierungs Schema durch eine Replay Attacke kompromitiert
-            wird.
-        </para>
-
-        <para>
-            Um das zu verhindern muß <classname>Zend_InfoCard_Adapter_Interface</classname>
-            implementiert werden und dann eine Instanz dieses Adapters vor dem Aufruf der
-            <methodname>process()</methodname> (alleinstehend) oder
-            <methodname>authenticate()</methodname> Methode (als ein
-            <classname>Zend_Auth</classname> Adapter) gesetzt werden. Um dieses Interface zu setzen
-            wird die <methodname>setAdapter()</methodname> Methode verwendet. Im Beispiel anbei wird
-            ein <classname>Zend_InfoCard</classname> Adapter gesetzt und innerhalb der Anwendung
-            verwendet:
-        </para>
-
-        <programlisting language="php"><![CDATA[
-class myAdapter implements Zend_InfoCard_Adapter_Interface
-{
-    public function storeAssertion($assertionURI,
-                                   $assertionID,
-                                   $conditions)
-    {
-        /* Die durch ID und URI angegebene Assertion
-           und Ihre Konditionen speichern */
-    }
-
-    public function retrieveAssertion($assertionURI, $assertionID)
-    {
-        /* Die durch URI und ID angegebene Assertion empfangen */
-    }
-
-    public function removeAssertion($assertionURI, $assertionID)
-    {
-        /* Die durch URI/ID angegebene Assertion löschen */
-    }
-}
-
-$adapter  = new myAdapter();
-
-$infoCard = new Zend_InfoCard();
-$infoCard->addCertificatePair(SSL_PRIVATE, SSL_PUB);
-$infoCard->setAdapter($adapter);
-
-$claims = $infoCard->process($_POST['xmlToken']);
-]]></programlisting>
-    </sect2>
-</sect1>

+ 0 - 5
documentation/manual/en/manual-print1.xml.in

@@ -256,11 +256,6 @@
         <xi:include href="module_specs/Zend_Http_Response.xml" />
     </chapter>
 
-    <chapter id="zend.infocard">
-        <title>Zend_InfoCard</title>
-        <xi:include href="module_specs/Zend_InfoCard-Basics.xml" />
-    </chapter>
-
     <chapter id="zend.json">
         <title>Zend_Json</title>
         <xi:include href="module_specs/Zend_Json-Introduction.xml" />

+ 0 - 9
documentation/manual/en/manual.xml.in

@@ -1172,15 +1172,6 @@
             </xi:include>
         </chapter>
 
-        <chapter id="zend.infocard">
-            <title>Zend_InfoCard</title>
-            <xi:include href="module_specs/Zend_InfoCard-Basics.xml">
-                <xi:fallback>
-                    <xi:include href="../en/module_specs/Zend_InfoCard-Basics.xml" />
-                </xi:fallback>
-            </xi:include>
-        </chapter>
-
         <chapter id="zend.json">
             <title>Zend_Json</title>
             <xi:include href="module_specs/Zend_Json-Introduction.xml">

+ 0 - 392
documentation/manual/en/module_specs/Zend_InfoCard-Basics.xml

@@ -1,392 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Reviewed: no -->
-<sect1 id="zend.infocard.basics">
-    <title>Introduction</title>
-
-    <para>
-        The <classname>Zend_InfoCard</classname> component implements relying-party
-        support for Information Cards. Information Cards are used for identity
-        management on the internet and authentication of users to web sites. The web sites
-        that the user ultimately authenticates to are called <emphasis>relying-parties</emphasis>.
-    </para>
-
-    <para>
-        Detailed information about information cards and their importance to the
-        internet identity metasystem can be found on the <ulink
-            url="http://www.identityblog.com/">IdentityBlog</ulink>.
-    </para>
-
-    <sect2 id="zend.infocard.basics.theory">
-        <title>Basic Theory of Usage</title>
-
-        <para>
-            Usage of <classname>Zend_InfoCard</classname> can be done one of two ways:
-            either as part of the larger <classname>Zend_Auth</classname> component via
-            the <classname>Zend_InfoCard</classname> authentication adapter or as a
-            stand-alone component. In both cases an information card can be
-            requested from a user by using the following <acronym>HTML</acronym> block in your
-            <acronym>HTML</acronym> login form:
-        </para>
-
-        <programlisting language="html"><![CDATA[
-<form action="http://example.com/server" method="POST">
-  <input type='image' src='/images/ic.png' align='center'
-        width='120px' style='cursor:pointer' />
-  <object type="application/x-informationCard"
-          name="xmlToken">
-   <param name="tokenType"
-         value="urn:oasis:names:tc:SAML:1.0:assertion" />
-   <param name="requiredClaims"
-         value="http://.../claims/privatepersonalidentifier
-         http://.../claims/givenname
-         http://.../claims/surname" />
- </object>
-</form>
-]]></programlisting>
-
-        <para>
-            In the example above, the <property>requiredClaims</property>
-            &lt;param&gt; tag is used to identify pieces of information known as claims (i.e.
-            person's first name, last name) which the web site (a.k.a "relying party") needs in
-            order a user to authenticate using an information card. For your reference, the full
-            <acronym>URI</acronym> (for instance the <emphasis>givenname</emphasis> claim) is as
-            follows:
-            <filename>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname</filename>
-        </para>
-
-        <para>
-            When the above <acronym>HTML</acronym> is activated by a user (clicks on it), the
-            browser will bring up a card selection program which not only shows
-            them which information cards meet the requirements of the site, but
-            also allows them to select which information card to use if multiple
-            meet the criteria. This information card is transmitted as an <acronym>XML</acronym>
-            document to the specified POST <acronym>URL</acronym> and is ready to be
-            processed by the <classname>Zend_InfoCard</classname> component.
-        </para>
-
-        <para>
-            Note, Information cards can only be <acronym>HTTP</acronym> <acronym>POST</acronym>ed to
-            <acronym>SSL</acronym>-encrypted <acronym>URL</acronym>s. Please consult your web
-            server's documentation on how to set up <acronym>SSL</acronym> encryption.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.auth">
-        <title>Using as part of Zend_Auth</title>
-
-        <para>
-            In order to use the component as part of the <classname>Zend_Auth</classname>
-            authentication system, you must use the provided
-            <classname>Zend_Auth_Adapter_InfoCard</classname> to do so (not available in
-            the standalone <classname>Zend_InfoCard</classname> distribution). An example
-            of its usage is shown below:
-        </para>
-
-        <programlisting language="php"><![CDATA[
-<?php
-if (isset($_POST['xmlToken'])) {
-
-    $adapter = new Zend_Auth_Adapter_InfoCard($_POST['xmlToken']);
-
-    $adapter->addCertificatePair('/usr/local/Zend/apache2/conf/server.key',
-                                 '/usr/local/Zend/apache2/conf/server.crt');
-
-    $auth = Zend_Auth::getInstance();
-
-    $result = $auth->authenticate($adapter);
-
-    switch ($result->getCode()) {
-        case Zend_Auth_Result::SUCCESS:
-            $claims = $result->getIdentity();
-            print "Given Name: {$claims->givenname}<br />";
-            print "Surname: {$claims->surname}<br />";
-            print "Email Address: {$claims->emailaddress}<br />";
-            print "PPI: {$claims->getCardID()}<br />";
-            break;
-        case Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID:
-            print "The Credential you provided did not pass validation";
-            break;
-        default:
-        case Zend_Auth_Result::FAILURE:
-            print "There was an error processing your credentials.";
-            break;
-    }
-
-    if (count($result->getMessages()) > 0) {
-        print "<pre>";
-        var_dump($result->getMessages());
-        print "</pre>";
-    }
-
-}
-?>
-<hr />
-<div id="login" style="font-family: arial; font-size: 2em;">
-<p>Simple Login Demo</p>
- <form method="post">
-  <input type="submit" value="Login" />
-   <object type="application/x-informationCard" name="xmlToken">
-    <param name="tokenType"
-          value="urn:oasis:names:tc:SAML:1.0:assertion" />
-    <param name="requiredClaims"
-          value="http://.../claims/givenname
-                 http://.../claims/surname
-                 http://.../claims/emailaddress
-                 http://.../claims/privatepersonalidentifier" />
-  </object>
- </form>
-</div>
-]]></programlisting>
-
-        <para>
-            In the example above, we first create an instance of the
-            <classname>Zend_Auth_Adapter_InfoCard</classname> and pass the <acronym>XML</acronym>
-            data posted by the card selector into it. Once an instance has been created you
-            must then provide at least one <acronym>SSL</acronym> certificate public/private key
-            pair used by the web server that received the <acronym>HTTP</acronym>
-            <acronym>POST</acronym>. These files are used to validate the destination of the
-            information posted to the server and are a requirement when using Information Cards.
-        </para>
-
-        <para>
-            Once the adapter has been configured, you can then use the standard
-            <classname>Zend_Auth</classname> facilities to validate the provided
-            information card token and authenticate the user by examining the
-            identity provided by the <methodname>getIdentity()</methodname> method.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.standalone">
-        <title>Using the Zend_InfoCard component standalone</title>
-
-        <para>
-            It is also possible to use the <classname>Zend_InfoCard</classname> component as a
-            standalone component by interacting with the
-            <classname>Zend_InfoCard</classname> class directly. Using the
-            <classname>Zend_InfoCard</classname> class is very similar to its use with the
-            <classname>Zend_Auth</classname> component. An example of its use is shown below:
-        </para>
-
-        <programlisting language="php"><![CDATA[
-<?php
-if (isset($_POST['xmlToken'])) {
-    $infocard = new Zend_InfoCard();
-    $infocard->addCertificatePair('/usr/local/Zend/apache2/conf/server.key',
-                                  '/usr/local/Zend/apache2/conf/server.crt');
-
-    $claims = $infocard->process($_POST['xmlToken']);
-
-    if($claims->isValid()) {
-        print "Given Name: {$claims->givenname}<br />";
-        print "Surname: {$claims->surname}<br />";
-        print "Email Address: {$claims->emailaddress}<br />";
-        print "PPI: {$claims->getCardID()}<br />";
-    } else {
-        print "Error Validating identity: {$claims->getErrorMsg()}";
-    }
-}
-?>
-<hr />
-<div id="login" style="font-family: arial; font-size: 2em;">
- <p>Simple Login Demo</p>
- <form method="post">
-  <input type="submit" value="Login" />
-   <object type="application/x-informationCard" name="xmlToken">
-    <param name="tokenType"
-          value="urn:oasis:names:tc:SAML:1.0:assertion" />
-    <param name="requiredClaims"
-          value="http://.../claims/givenname
-                 http://.../claims/surname
-                 http://.../claims/emailaddress
-                 http://.../claims/privatepersonalidentifier" />
-   </object>
- </form>
-</div>
-]]></programlisting>
-
-        <para>
-            In the example above, we use the <classname>Zend_InfoCard</classname> component
-            independently to validate the token provided by the user. As was the
-            case with the <classname>Zend_Auth_Adapter_InfoCard</classname>, we create an
-            instance of <classname>Zend_InfoCard</classname> and then set one or more
-            <acronym>SSL</acronym> certificate public/private key pairs used by the web server. Once
-            configured, we can use the <methodname>process()</methodname> method to process
-            the information card and return the results.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.claims">
-        <title>Working with a Claims object</title>
-
-        <para>
-            Regardless of whether the <classname>Zend_InfoCard</classname> component is used as
-            a standalone component or as part of <classname>Zend_Auth</classname> via
-            <classname>Zend_Auth_Adapter_InfoCard</classname>, the ultimate
-            result of the processing of an information card is a
-            <classname>Zend_InfoCard_Claims</classname> object. This object contains the
-            assertions (a.k.a. claims) made by the submitting user based on the
-            data requested by your web site when the user authenticated. As
-            shown in the examples above, the validity of the information card
-            can be ascertained by calling the
-            <methodname>Zend_InfoCard_Claims::isValid()</methodname> method. Claims
-            themselves can either be retrieved by simply accessing the
-            identifier desired (i.e. <property>givenname</property>) as a property of
-            the object or through the <methodname>getClaim()</methodname> method.
-        </para>
-
-        <para>
-            In most cases you will never need to use the <methodname>getClaim()</methodname>
-            method. However, if your <property>requiredClaims</property> mandate that
-            you request claims from multiple different sources/namespaces then
-            you will need to extract them explicitly using this method (simply
-            pass it the full <acronym>URI</acronym> of the claim to retrieve its value from within
-            the information card). Generally speaking however, the
-            <classname>Zend_InfoCard</classname> component will set the default
-            <acronym>URI</acronym> for claims to be the one used the most frequently within the
-            information card itself and the simplified property-access method can be used.
-        </para>
-
-        <para>
-            As part of the validation process, it is the developer's responsibility to
-            examine the issuing source of the claims contained within the
-            information card and to decide if that source is a trusted source of
-            information. To do so, the <methodname>getIssuer()</methodname> method is
-            provided within the <classname>Zend_InfoCard_Claims</classname> object which
-            returns the <acronym>URI</acronym> of the issuer of the information card claims.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.attaching">
-        <title>Attaching Information Cards to existing accounts</title>
-
-        <para>
-            It is possible to add support for information cards to an existing
-            authentication system by storing the private personal identifier
-            (PPI) to a previously traditionally-authenticated account and
-            including at least the
-            <filename>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/privatepersonalidentifier</filename>
-            claim as part of the <property>requiredClaims</property> of the request. If
-            this claim is requested then the <classname>Zend_InfoCard_Claims</classname>
-            object will provide a unique identifier for the specific card that
-            was submitted by calling the <methodname>getCardID()</methodname> method.
-        </para>
-
-        <para>
-            An example of how to attach an information card to an existing
-            traditional-authentication account is shown below:
-        </para>
-
-        <programlisting language="php"><![CDATA[
-// ...
-public function submitinfocardAction()
-{
-    if (!isset($_REQUEST['xmlToken'])) {
-        throw new ZBlog_Exception('Expected an encrypted token ' .
-                                  'but was not provided');
-    }
-
-    $infoCard = new Zend_InfoCard();
-    $infoCard->addCertificatePair(SSL_CERTIFICATE_PRIVATE,
-                                  SSL_CERTIFICATE_PUB);
-
-    try {
-        $claims = $infoCard->process($request['xmlToken']);
-    } catch(Zend_InfoCard_Exception $e) {
-        // TODO Error processing your request
-        throw $e;
-    }
-
-    if ($claims->isValid()) {
-        $db = ZBlog_Data::getAdapter();
-
-        $ppi = $db->quote($claims->getCardID());
-        $fullname = $db->quote("{$claims->givenname} {$claims->surname}");
-
-        $query = "UPDATE blogusers
-                     SET ppi = $ppi,
-                         real_name = $fullname
-                   WHERE username='administrator'";
-
-        try {
-            $db->query($query);
-        } catch(Exception $e) {
-            // TODO Failed to store in DB
-        }
-
-        $this->view->render();
-        return;
-    } else {
-        throw new
-            ZBlog_Exception("Infomation card failed security checks");
-    }
-}
-]]></programlisting>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.adapters">
-        <title>Creating Zend_InfoCard Adapters</title>
-
-        <para>
-            The <classname>Zend_InfoCard</classname> component was designed to allow for
-            growth in the information card standard through the use of a modular
-            architecture. At this time, many of these hooks are unused and can be
-            ignored, but there is one class that should be written for
-            any serious information card implementation: the
-            <classname>Zend_InfoCard</classname> adapter.
-        </para>
-
-        <para>
-            The <classname>Zend_InfoCard</classname> adapter is used as a callback
-            mechanism within the component to perform various tasks, such as
-            storing and retrieving Assertion IDs for information cards when they
-            are processed by the component. While storing the assertion IDs of
-            submitted information cards is not necessary, failing to do so opens
-            up the possibility of the authentication scheme being compromised
-            through a replay attack.
-        </para>
-
-        <para>
-            To prevent this, one must implement the
-            <classname>Zend_InfoCard_Adapter_Interface</classname> and set an
-            instance of this interface prior to calling either the
-            <methodname>process()</methodname> (standalone) or
-            <methodname>authenticate()</methodname> method as a <classname>Zend_Auth</classname>
-            adapter. To set this interface, the <methodname>setAdapter()</methodname> method should
-            be used. In the example below, we set a <classname>Zend_InfoCard</classname> adapter and
-            use it in our application:
-        </para>
-
-        <programlisting language="php"><![CDATA[
-class myAdapter implements Zend_InfoCard_Adapter_Interface
-{
-    public function storeAssertion($assertionURI,
-                                   $assertionID,
-                                   $conditions)
-    {
-        /* Store the assertion and its conditions by ID and URI */
-    }
-
-    public function retrieveAssertion($assertionURI, $assertionID)
-    {
-        /* Retrieve the assertion by URI and ID */
-    }
-
-    public function removeAssertion($assertionURI, $assertionID)
-    {
-        /* Delete a given assertion by URI/ID */
-    }
-}
-
-$adapter  = new myAdapter();
-
-$infoCard = new Zend_InfoCard();
-$infoCard->addCertificatePair(SSL_PRIVATE, SSL_PUB);
-$infoCard->setAdapter($adapter);
-
-$claims = $infoCard->process($_POST['xmlToken']);
-]]></programlisting>
-    </sect2>
-</sect1>
-<!--
-vim:se ts=4 sw=4 et:
--->

+ 0 - 25
documentation/manual/en/ref/requirements-dependencies-table.xml

@@ -129,14 +129,6 @@
             <row>
                 <entry>
                     <ulink
-                        url="&zf.manual.link;/zend.infocard.html">
-                        <classname>Zend_InfoCard</classname>
-                    </ulink>
-                </entry>
-            </row>
-            <row>
-                <entry>
-                    <ulink
                         url="&zf.manual.link;/zend.ldap.html">
                         <classname>Zend_Ldap</classname>
                     </ulink>
@@ -1929,23 +1921,6 @@
                 </entry>
             </row>
             <row>
-                <entry morerows="1" valign="middle">
-                    <emphasis>
-                        <ulink
-                            url="&zf.manual.link;/zend.infocard.html">
-                            <classname>Zend_InfoCard</classname>
-                        </ulink>
-                    </emphasis>
-                </entry>
-                <entry morerows="1" valign="middle">&requirements.hard;</entry>
-                <entry>
-                    <ulink
-                        url="&zf.manual.link;/zend.exception.html">
-                        <classname>Zend_Exception</classname>
-                    </ulink>
-                </entry>
-            </row>
-            <row>
                 <entry>
                     <ulink
                         url="&zf.manual.link;/zend.loader.html">

+ 0 - 12
documentation/manual/en/ref/requirements-zendcomponents-table.xml

@@ -482,18 +482,6 @@
                 </entry>
             </row>
             <row>
-                <entry>
-                    <emphasis>
-                        <ulink
-                            url="&zf.manual.link;/zend.infocard.html">
-                            <classname>Zend_InfoCard</classname>
-                        </ulink>
-                    </emphasis>
-                </entry>
-                <entry>---</entry>
-                <entry>---</entry>
-            </row>
-            <row>
                 <entry morerows="1" valign="middle">
                     <emphasis>
                         <ulink

+ 0 - 22
documentation/manual/es/ref/requirements-dependencies-table.xml

@@ -111,13 +111,6 @@
             </row>
             <row>
                 <entry>
-                    <ulink url="http://framework.zend.com/manual/en/zend.infocard.html">
-                        <classname>Zend_InfoCard</classname>
-                    </ulink>
-                </entry>
-            </row>
-            <row>
-                <entry>
                     <ulink url="http://framework.zend.com/manual/en/zend.ldap.html">
                         <classname>Zend_Ldap</classname>
                     </ulink>
@@ -1696,21 +1689,6 @@
                 </entry>
             </row>
             <row>
-                <entry morerows="1" valign="middle">
-                    <emphasis>
-                        <ulink url="http://framework.zend.com/manual/en/zend.infocard.html">
-                            <classname>Zend_InfoCard</classname>
-                        </ulink>
-                    </emphasis>
-                </entry>
-                <entry morerows="1" valign="middle">Hard</entry>
-                <entry>
-                    <ulink url="http://framework.zend.com/manual/en/zend.exception.html">
-                        <classname>Zend_Exception</classname>
-                    </ulink>
-                </entry>
-            </row>
-            <row>
                 <entry>
                     <ulink url="http://framework.zend.com/manual/en/zend.loader.html">
                         <classname>Zend_Loader</classname>

+ 0 - 11
documentation/manual/es/ref/requirements-zendcomponents-table.xml

@@ -415,17 +415,6 @@
                 </entry>
             </row>
             <row>
-                <entry>
-                    <emphasis>
-                        <ulink url="http://framework.zend.com/manual/en/zend.infocard.html">
-                            <classname>Zend_InfoCard</classname>
-                        </ulink>
-                    </emphasis>
-                </entry>
-                <entry>---</entry>
-                <entry>---</entry>
-            </row>
-            <row>
                 <entry morerows="1" valign="middle">
                     <emphasis>
                         <ulink url="http://framework.zend.com/manual/en/zend.json.html">

+ 0 - 13
documentation/manual/he/ref/requirements.xml

@@ -838,11 +838,6 @@
                             <entry><ulink url="http://www.php.net/manual/en/ref.mime-magic.php"><code>mime_magic</code></ulink></entry>
                         </row>
                         <row>
-                            <entry><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.infocard.html"><code>Zend_InfoCard</code></ulink></emphasis></entry>
-                            <entry>---</entry>
-                            <entry>---</entry>
-                        </row>
-                        <row>
                             <entry morerows="1" valign="middle"><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.json.html"><code>Zend_Json</code></ulink></emphasis></entry>
                             <entry>לא תלוי</entry>
                             <entry><ulink url="http://www.php.net/manual/en/ref.json.php"><code>json</code></ulink></entry>
@@ -1225,9 +1220,6 @@
                             <entry><ulink url="http://framework.zend.com/manual/en/zend.db.html"><code>Zend_Db</code></ulink></entry>
                         </row>
                         <row>
-                            <entry><ulink url="http://framework.zend.com/manual/en/zend.infocard.html"><code>Zend_InfoCard</code></ulink></entry>
-                        </row>
-                        <row>
                             <entry><ulink url="http://framework.zend.com/manual/en/zend.ldap.html"><code>Zend_Ldap</code></ulink></entry>
                         </row>
                         <row>
@@ -1901,11 +1893,6 @@
                             <entry><ulink url="http://framework.zend.com/manual/en/zend.registry.html"><code>Zend_Registry</code></ulink></entry>
                         </row>
                         <row>
-                            <entry morerows="1" valign="middle"><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.infocard.html"><code>Zend_InfoCard</code></ulink></emphasis></entry>
-                            <entry morerows="1" valign="middle">תלוי מאוד</entry>
-                            <entry><ulink url="http://framework.zend.com/manual/en/zend.exception.html"><code>Zend_Exception</code></ulink></entry>
-                        </row>
-                        <row>
                             <entry><ulink url="http://framework.zend.com/manual/en/zend.loader.html"><code>Zend_Loader</code></ulink></entry>
                         </row>
                         <row>

+ 0 - 25
documentation/manual/hu/ref/requirements-dependencies-table.xml

@@ -121,14 +121,6 @@
             <row>
                 <entry>
                     <ulink
-                        url="http://framework.zend.com/manual/en/zend.infocard.html">
-                        <classname>Zend_InfoCard</classname>
-                    </ulink>
-                </entry>
-            </row>
-            <row>
-                <entry>
-                    <ulink
                         url="http://framework.zend.com/manual/en/zend.ldap.html">
                         <classname>Zend_Ldap</classname>
                     </ulink>
@@ -1921,23 +1913,6 @@
                 </entry>
             </row>
             <row>
-                <entry morerows="1" valign="middle">
-                    <emphasis>
-                        <ulink
-                            url="http://framework.zend.com/manual/en/zend.infocard.html">
-                            <classname>Zend_InfoCard</classname>
-                        </ulink>
-                    </emphasis>
-                </entry>
-                <entry morerows="1" valign="middle">Erős</entry>
-                <entry>
-                    <ulink
-                        url="http://framework.zend.com/manual/en/zend.exception.html">
-                        <classname>Zend_Exception</classname>
-                    </ulink>
-                </entry>
-            </row>
-            <row>
                 <entry>
                     <ulink
                         url="http://framework.zend.com/manual/en/zend.loader.html">

+ 0 - 12
documentation/manual/hu/ref/requirements-zendcomponents-table.xml

@@ -460,18 +460,6 @@
                 </entry>
             </row>
             <row>
-                <entry>
-                    <emphasis>
-                        <ulink
-                            url="http://framework.zend.com/manual/en/zend.infocard.html">
-                            <classname>Zend_InfoCard</classname>
-                        </ulink>
-                    </emphasis>
-                </entry>
-                <entry>–</entry>
-                <entry>–</entry>
-            </row>
-            <row>
                 <entry morerows="1" valign="middle">
                     <emphasis>
                         <ulink

+ 0 - 15
documentation/manual/id/ref/requirements.xml

@@ -830,12 +830,6 @@
                         <entry><ulink url="http://www.php.net/manual/en/ref.mime-magic.php"><code>mime_magic</code></ulink></entry>
                     </row>
                     <row>
-                        <entry><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.infocard.html"><code>Zend_InfoCard</code></ulink></emphasis></entry>
-                        <entry>---</entry>
-                        <entry>---</entry>
-                        <entry>---</entry>
-                    </row>
-                    <row>
                         <entry morerows="1" valign="middle"><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.json.html"><code>Zend_Json</code></ulink></emphasis></entry>
                         <entry>Soft</entry>
                         <entry>---</entry>
@@ -1211,9 +1205,6 @@
                         <entry><ulink url="http://framework.zend.com/manual/en/zend.db.html"><code>Zend_Db</code></ulink></entry>
                     </row>
                     <row>
-                        <entry><ulink url="http://framework.zend.com/manual/en/zend.infocard.html"><code>Zend_InfoCard</code></ulink></entry>
-                    </row>
-                    <row>
                         <entry><ulink url="http://framework.zend.com/manual/en/zend.ldap.html"><code>Zend_Ldap</code></ulink></entry>
                     </row>
                     <row>
@@ -1398,11 +1389,6 @@
                         <entry><ulink url="http://framework.zend.com/manual/en/zend.uri.html"><code>Zend_Uri</code></ulink></entry>
                     </row>
                     <row>
-                        <entry><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.infocard.html"><code>Zend_InfoCard</code></ulink></emphasis></entry>
-                        <entry>Hard</entry>
-                        <entry><ulink url="http://framework.zend.com/manual/en/zend.loader.html"><code>Zend_Loader</code></ulink></entry>
-                    </row>
-                    <row>
                         <entry><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.json.html"><code>Zend_Json</code></ulink></emphasis></entry>
                         <entry>Hard</entry>
                         <entry><ulink url="http://framework.zend.com/manual/en/zend.exception.html"><code>Zend_Exception</code></ulink></entry>
@@ -1802,7 +1788,6 @@ Filter
 Form
 Gdata
 Http
-InfoCard
 Json
 Layout
 Ldap

+ 0 - 404
documentation/manual/ja/module_specs/Zend_InfoCard-Basics.xml

@@ -1,404 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Reviewed: no -->
-<!-- EN-Revision: 24249 -->
-<sect1 id="zend.infocard.basics">
-    <title>導入</title>
-    <!-- Skip-EN-Revisions: 22747 -->
-    <para>注意:このドキュメントでは、英語版のリビジョン 22747 の更新内容をスキップしています。</para>
-    <para>
-        <classname>Zend_InfoCard</classname> コンポーネントは、
-        情報カード (Information Cards) の relying-party
-        サポートを実装したものです。
-        情報カードは、インターネット上でのユーザ識別情報の管理や
-        ウェブサイトのユーザ認証に用いるものです。
-        最終的にユーザ認証を行う先のウェブサイトのことを
-        <emphasis>relying-party</emphasis> といいます。
-    </para>
-
-    <para>
-        情報カードについて、
-        あるいはインターネット上の識別メタシステムにおける情報カードの重要性については、
-        <ulink url="http://www.identityblog.com/">IdentityBlog</ulink>
-        を参照ください。
-    </para>
-
-    <sect2 id="zend.infocard.basics.theory">
-        <title>基本的な使用法</title>
-
-        <para>
-            <classname>Zend_InfoCard</classname> の使用法は、
-            <classname>Zend_Auth</classname> コンポーネントの一部として
-            <classname>Zend_InfoCard</classname> 認証アダプタを使用するか、
-            あるいは単体のコンポーネントとして使用するかのいずれかです。
-            どちらの場合についても、ユーザから情報カードを受け取るには
-            <acronym>HTML</acronym> のログインフォームの中で次のような <acronym>HTML</acronym> ブロックを使用します。
-        </para>
-
-        <programlisting language="html"><![CDATA[
-<form action="http://example.com/server" method="POST">
-  <input type='image' src='/images/ic.png' align='center'
-        width='120px' style='cursor:pointer' />
-  <object type="application/x-informationCard"
-          name="xmlToken">
-   <param name="tokenType"
-         value="urn:oasis:names:tc:SAML:1.0:assertion" />
-   <param name="requiredClaims"
-         value="http://.../claims/privatepersonalidentifier
-         http://.../claims/givenname
-         http://.../claims/surname" />
- </object>
-</form>
-]]></programlisting>
-
-        <para>
-            この例において、<code>requiredClaims</code>
-            <code>&lt;param&gt;</code> タグで表しているのが、
-            claim (人の姓名など) と呼ばれる識別情報です。
-            これは、ウェブサイト ("relying party")
-            が情報カードによる認証を行うために必要となります。
-        </para>
-
-        <para>
-            上の <acronym>HTML</acronym> をユーザが実行する (クリックする) と、
-            ブラウザはカード選択プログラムを実行します。
-            これは、そのサイトの要求を満たす情報カードを表示させるだけでなく、
-            条件を満たす情報カードが複数存在する場合に好きなものを選択させることができます。
-            この情報カードは、指定した <acronym>URL</acronym> に <acronym>XML</acronym> ドキュメントとして
-            <code>POST</code> され、これを
-            <classname>Zend_InfoCard</classname> コンポーネントで処理することになります。
-        </para>
-
-        <para>
-            情報カードは、<acronym>SSL</acronym> で暗号化した <acronym>URL</acronym> への
-            <code>HTTP POST</code> しかできないことに注意しましょう。
-            <acronym>SSL</acronym> による暗号化を設定する方法については、
-            ウェブサーバのドキュメントを参照ください。
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.auth">
-        <title>Zend_Auth の部品としての使用法</title>
-
-        <para>
-            このコンポーネントを <classname>Zend_Auth</classname>
-            認証システムと組み合わせて使用するには、
-            <classname>Zend_Auth_Adapter_InfoCard</classname> を使用する必要があります
-            (これは、単体で配布されている <classname>Zend_InfoCard</classname>
-            には存在しません)。
-            この手法での使用例を以下に示します。
-        </para>
-
-        <programlisting language="php"><![CDATA[
-<?php
-if (isset($_POST['xmlToken'])) {
-
-    $adapter = new Zend_Auth_Adapter_InfoCard($_POST['xmlToken']);
-
-    $adapter->addCertificatePair('/usr/local/Zend/apache2/conf/server.key',
-                                 '/usr/local/Zend/apache2/conf/server.crt');
-
-
-    $auth = Zend_Auth::getInstance();
-
-    $result = $auth->authenticate($adapter);
-
-    switch ($result->getCode()) {
-        case Zend_Auth_Result::SUCCESS:
-            $claims = $result->getIdentity();
-            print "Given Name: {$claims->givenname}<br />";
-            print "Surname: {$claims->surname}<br />";
-            print "Email Address: {$claims->emailaddress}<br />";
-            print "PPI: {$claims->getCardID()}<br />";
-            break;
-        case Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID:
-            print "The Credential you provided did not pass validation";
-            break;
-        default:
-        case Zend_Auth_Result::FAILURE:
-            print "There was an error processing your credentials.";
-            break;
-    }
-
-    if (count($result->getMessages()) > 0) {
-        print "<pre>";
-        var_dump($result->getMessages());
-        print "</pre>";
-    }
-
-}
-?>
-<hr />
-<div id="login" style="font-family: arial; font-size: 2em;">
-<p>Simple Login Demo</p>
- <form method="post">
-  <input type="submit" value="Login" />
-   <object type="application/x-informationCard" name="xmlToken">
-    <param name="tokenType"
-          value="urn:oasis:names:tc:SAML:1.0:assertion" />
-    <param name="requiredClaims"
-          value="http://.../claims/givenname
-                 http://.../claims/surname
-                 http://.../claims/emailaddress
-                 http://.../claims/privatepersonalidentifier" />
-  </object>
- </form>
-</div>
-]]></programlisting>
-
-        <para>
-            上の例では、まず最初に
-            <classname>Zend_Auth_Adapter_InfoCard</classname> のインスタンスを作成して、
-            カードセレクタから送信された <acronym>XML</acronym> データをそこに渡しています。
-            インスタンスを作成したら、次に <acronym>SSL</acronym> 証明書の秘密鍵/公開鍵
-            ペアを指定する必要があります。
-            このペアは、<code>HTTP POST</code>
-            を受け取ったウェブサーバで使用しているものです。
-            これらのファイルを使用して、サーバに送信された情報のあて先の検証を行います。
-            情報カードを使用するときにはこれらが必要となります。
-        </para>
-
-        <para>
-            アダプタの設定がすんだら、あとは
-            <classname>Zend_Auth</classname> の標準機能を使って情報カードトークンの検証を行い、
-            <methodname>getIdentity()</methodname> で取得した識別情報をもとにユーザの認証を行います。
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.standalone">
-        <title>Zend_InfoCard コンポーネント単体での使用法</title>
-
-        <para>
-            <classname>Zend_InfoCard</classname> コンポーネントを、
-            それ単体で使用することも可能です。その場合は
-            <classname>Zend_InfoCard</classname> クラスを直接操作します。
-            <classname>Zend_InfoCard</classname> クラスの使用法は、<classname>Zend_Auth</classname>
-            コンポーネントと組み合わせて使用する場合とほぼ同じです。
-            以下に使用例を示します。
-        </para>
-
-        <programlisting language="php"><![CDATA[
-<?php
-if (isset($_POST['xmlToken'])) {
-    $infocard = new Zend_InfoCard();
-    $infocard->addCertificatePair('/usr/local/Zend/apache2/conf/server.key',
-                                  '/usr/local/Zend/apache2/conf/server.crt');
-
-    $claims = $infocard->process($_POST['xmlToken']);
-
-    if($claims->isValid()) {
-        print "Given Name: {$claims->givenname}<br />";
-        print "Surname: {$claims->surname}<br />";
-        print "Email Address: {$claims->emailaddress}<br />";
-        print "PPI: {$claims->getCardID()}<br />";
-    } else {
-        print "Error Validating identity: {$claims->getErrorMsg()}";
-    }
-}
-?>
-<hr />
-<div id="login" style="font-family: arial; font-size: 2em;">
-<p>Simple Login Demo</p>
- <form method="post">
-  <input type="submit" value="Login" />
-   <object type="application/x-informationCard" name="xmlToken">
-    <param name="tokenType"
-          value="urn:oasis:names:tc:SAML:1.0:assertion" />
-    <param name="requiredClaims"
-          value="http://.../claims/givenname
-                 http://.../claims/surname
-                 http://.../claims/emailaddress
-                 http://.../claims/privatepersonalidentifier" />
-   </object>
- </form>
-</div>
-]]></programlisting>
-
-        <para>
-            上の例では、<classname>Zend_InfoCard</classname>
-            コンポーネントを単体で使用して、ユーザが送信したトークンを検証しています。
-            <classname>Zend_Auth_Adapter_InfoCard</classname> の場合と同様、
-            <classname>Zend_InfoCard</classname> のインスタンスを作成してから
-            ウェブサーバの <acronym>SSL</acronym> 証明書の公開キー/秘密キーペアを設定します。
-            設定がすんだら、<methodname>process()</methodname>
-            メソッドで情報カードの処理を行ってその結果を返します。
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.claims">
-        <title>Claims オブジェクトの使用法</title>
-
-        <para>
-            <classname>Zend_InfoCard</classname> の使用方法
-            (単体で使用するか、あるいは <classname>Zend_Auth</classname> の一部として
-            <classname>Zend_Auth_Adapter_InfoCard</classname> 経由で使用するか)
-            にかかわらず、情報カードを処理した結果は
-            <classname>Zend_InfoCard_Claims</classname> オブジェクトとして返されます。
-            このオブジェクトには assertions (claims) が含まれます。
-            これは、ユーザ認証の際にあなたのサイトが出した要求にもとづいて、
-            ユーザが送信したデータから作成したものです。
-            上の例で示したように、情報カードの妥当性を確認するには
-            <methodname>Zend_InfoCard_Claims::isValid()</methodname>
-            メソッドをコールします。claims そのものを取得するには、
-            単純に識別子 (<code>givenname</code> など)
-            をオブジェクトのプロパティとして指定してアクセスするか、
-            あるいは <methodname>getClaim()</methodname> メソッドを使用します。
-        </para>
-
-        <para>
-            ほとんどの場合においては <methodname>getClaim()</methodname>
-            メソッドを使用する必要はありません。
-            しかし、もし <code>requiredClaims</code>
-            が複数の異なるソース/名前空間からの情報を要求している場合は、
-            それをこのメソッドで明示的に取り出す必要があります
-            (claim の完全な <acronym>URI</acronym> を私、情報カードの中からその値を取得します)。
-            一般論として、<classname>Zend_InfoCard</classname>
-            コンポーネントがデフォルトで設定する claim 用 <acronym>URI</acronym>
-            は情報カードの中で最もよく用いられるものです。
-            この場合は単純にプロパティを使用してアクセスできます。
-        </para>
-
-        <para>
-            検証処理の中で開発者が行わなければならない部分は、
-            情報カード内の claim の発行元を調べて
-            それが信頼できる情報元かどうかを判定するところです。
-            これを行うために、<classname>Zend_InfoCard_Claims</classname>
-            オブジェクトには <methodname>getIssuer()</methodname> メソッドが用意されています。
-            このメソッドは、情報カードの claim の発行元 <acronym>URI</acronym> を返します。
-        </para>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.attaching">
-        <title>既存のアカウントへの情報カードの添付</title>
-
-        <para>
-            既存の認証システムに情報カードのサポートを追加することもできます。
-            そのためには、private personal identifier
-            (PPI) を昔ながらの認証アカウントに埋め込み、
-            最低限の claim である
-            <code>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/privatepersonalidentifier</code>
-            をリクエストの <code>requiredClaims</code>
-            に指定します。この claim が要求されると、
-            <classname>Zend_InfoCard_Claims</classname>
-            オブジェクトはそのカード用の一意な識別子を用意します。
-            これは、<methodname>getCardID()</methodname> メソッドによって行います。
-        </para>
-
-        <para>
-            情報カードを既存の昔ながらの認証アカウントに添付する例を、
-            以下に示します。
-        </para>
-
-        <programlisting language="php"><![CDATA[
-// ...
-public function submitinfocardAction()
-{
-    if (!isset($_REQUEST['xmlToken'])) {
-        throw new ZBlog_Exception('Expected an encrypted token ' .
-                                  'but was not provided');
-    }
-
-    $infoCard = new Zend_InfoCard();
-    $infoCard->addCertificatePair(SSL_CERTIFICATE_PRIVATE,
-                                  SSL_CERTIFICATE_PUB);
-
-    try {
-        $claims = $infoCard->process($request['xmlToken']);
-    } catch(Zend_InfoCard_Exception $e) {
-        // TODO Error processing your request
-        throw $e;
-    }
-
-    if ($claims->isValid()) {
-        $db = ZBlog_Data::getAdapter();
-
-        $ppi = $db->quote($claims->getCardID());
-        $fullname = $db->quote("{$claims->givenname} {$claims->surname}");
-
-        $query = "UPDATE blogusers
-                     SET ppi = $ppi,
-                         real_name = $fullname
-                   WHERE username='administrator'";
-
-        try {
-            $db->query($query);
-        } catch(Exception $e) {
-            // TODO Failed to store in DB
-        }
-
-        $this->view->render();
-        return;
-    } else {
-        throw new
-            ZBlog_Exception("Infomation card failed security checks");
-    }
-}
-]]></programlisting>
-    </sect2>
-
-    <sect2 id="zend.infocard.basics.adapters">
-        <title>Zend_InfoCard アダプタの作成</title>
-
-        <para>
-            <classname>Zend_InfoCard</classname> コンポーネントは、
-            情報カードの標準規格の変化に対応するために
-            モジュラー構造を採用しています。
-            現時点では、拡張ポイントの多くは未使用ですので無視できますが、
-            情報カードの実装においてひとつだけ実装すべき点があります。
-            それが <classname>Zend_InfoCard_Adapter</classname> です。
-        </para>
-
-        <para>
-            <classname>Zend_InfoCard</classname> アダプタは、
-            コンポーネント内でコールバックを使用してさまざまな処理を行います。
-            たとえば、コンポーネントが情報カードを処理する際の
-            Assertion ID の保存や取得などを行います。
-            受け取った情報カードの assertion ID の保存は必須ではありませんが、
-            もしそれに失敗すると、リプレイ攻撃によって認証が信頼できないものになる可能性が発生します。
-        </para>
-
-        <para>
-            これを避けるためには、
-            <classname>Zend_InfoCard_Adapter_Interface</classname>
-            を実装してそのインスタンスを設定してから
-            <methodname>process()</methodname> メソッド (単体) あるいは <methodname>authenticate()</methodname>
-            メソッド (<classname>Zend_Auth</classname> アダプタ) をコールしなければなりません。
-            このインターフェイスを設定するためのメソッドが
-            <methodname>setAdapter()</methodname> です。
-            以下の例では、<classname>Zend_InfoCard</classname>
-            アダプタを設定してアプリケーション内で使用しています。
-        </para>
-
-        <programlisting language="php"><![CDATA[
-class myAdapter implements Zend_InfoCard_Adapter_Interface
-{
-    public function storeAssertion($assertionURI,
-                                   $assertionID,
-                                   $conditions)
-    {
-        /* Store the assertion and its conditions by ID and URI */
-    }
-
-    public function retrieveAssertion($assertionURI, $assertionID)
-    {
-        /* Retrieve the assertion by URI and ID */
-    }
-
-    public function removeAssertion($assertionURI, $assertionID)
-    {
-        /* Delete a given assertion by URI/ID */
-    }
-}
-
-$adapter  = new myAdapter();
-
-$infoCard = new Zend_InfoCard();
-$infoCard->addCertificatePair(SSL_PRIVATE, SSL_PUB);
-$infoCard->setAdapter($adapter);
-
-$claims = $infoCard->process($_POST['xmlToken']);
-]]></programlisting>
-    </sect2>
-</sect1>
-<!--
-vim:se ts=4 sw=4 et:
--->

+ 0 - 15
documentation/manual/pl/ref/requirements.xml

@@ -839,12 +839,6 @@
                         <entry><ulink url="http://www.php.net/manual/en/ref.mime-magic.php"><code>mime_magic</code></ulink></entry>
                     </row>
                     <row>
-                        <entry><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.infocard.html"><code>Zend_InfoCard</code></ulink></emphasis></entry>
-                        <entry>---</entry>
-                        <entry>---</entry>
-                        <entry>---</entry>
-                    </row>
-                    <row>
                         <entry morerows="1" valign="middle"><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.json.html"><code>Zend_Json</code></ulink></emphasis></entry>
                         <entry>Słaba</entry>
                         <entry>---</entry>
@@ -1220,9 +1214,6 @@
                         <entry><ulink url="http://framework.zend.com/manual/en/zend.db.html"><code>Zend_Db</code></ulink></entry>
                     </row>
                     <row>
-                        <entry><ulink url="http://framework.zend.com/manual/en/zend.infocard.html"><code>Zend_InfoCard</code></ulink></entry>
-                    </row>
-                    <row>
                         <entry><ulink url="http://framework.zend.com/manual/en/zend.ldap.html"><code>Zend_Ldap</code></ulink></entry>
                     </row>
                     <row>
@@ -1407,11 +1398,6 @@
                         <entry><ulink url="http://framework.zend.com/manual/en/zend.uri.html"><code>Zend_Uri</code></ulink></entry>
                     </row>
                     <row>
-                        <entry><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.infocard.html"><code>Zend_InfoCard</code></ulink></emphasis></entry>
-                        <entry>Silna</entry>
-                        <entry><ulink url="http://framework.zend.com/manual/en/zend.loader.html"><code>Zend_Loader</code></ulink></entry>
-                    </row>
-                    <row>
                         <entry><emphasis role="strong"><ulink url="http://framework.zend.com/manual/en/zend.json.html"><code>Zend_Json</code></ulink></emphasis></entry>
                         <entry>Silna</entry>
                         <entry><ulink url="http://framework.zend.com/manual/en/zend.exception.html"><code>Zend_Exception</code></ulink></entry>
@@ -1811,7 +1797,6 @@ Filter
 Form
 Gdata
 Http
-InfoCard
 Json
 Layout
 Ldap