diff options
author | Olav Morken <olav.morken@uninett.no> | 2013-11-15 09:34:07 +0000 |
---|---|---|
committer | Olav Morken <olav.morken@uninett.no> | 2013-11-15 09:34:07 +0000 |
commit | 6f61aef12c6b1b02e32da6d1c696bee6d5f1e4dc (patch) | |
tree | f1d6c78ab5e2eec5f8b8121f9e1a838c28997fa6 /lib/SAML2/ArtifactResolve.php | |
parent | e9c98e008ed7dbb5d642aa4788edd2510c952ca1 (diff) | |
download | simplesamlphp-6f61aef12c6b1b02e32da6d1c696bee6d5f1e4dc.zip simplesamlphp-6f61aef12c6b1b02e32da6d1c696bee6d5f1e4dc.tar.gz simplesamlphp-6f61aef12c6b1b02e32da6d1c696bee6d5f1e4dc.tar.bz2 |
Start using SAML2 library from GitHub.
This patch also starts using Composer for other dependencies
(i.e. php-openid and xmlseclibs).
Thanks to Boy Baukema for implementing this!
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3290 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SAML2/ArtifactResolve.php')
-rw-r--r-- | lib/SAML2/ArtifactResolve.php | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/lib/SAML2/ArtifactResolve.php b/lib/SAML2/ArtifactResolve.php deleted file mode 100644 index b0e1006..0000000 --- a/lib/SAML2/ArtifactResolve.php +++ /dev/null @@ -1,65 +0,0 @@ -<?php -/** - * The Artifact is part of the SAML 2.0 IdP code, and it builds an artifact object. - * I am using strings, because I find them easier to work with. - * I want to use this, to be consistent with the other saml2_requests - * - * @author Danny Bollaert, UGent AS. <danny.bollaert@ugent.be> - * @package simpleSAMLphp - * @version $Id$ - */ -class SAML2_ArtifactResolve extends SAML2_Request { - - - private $artifact; - - - - public function __construct(DOMElement $xml = NULL) { - parent::__construct('ArtifactResolve', $xml); - - if(!is_null($xml)){ - $results = SAML2_Utils::xpQuery($xml, './saml_protocol:Artifact'); - $this->artifact = $results[0]->textContent; - } - - } - - - /** - * Retrieve the Artifact in this response. - * - * @return string artifact. - */ - public function getArtifact() { - return $this->artifact; - } - - - /** - * Set the artifact that should be included in this response. - * - * @param String The $artifact. - */ - public function setArtifact($artifact) { - assert('is_string($artifact)'); - $this->artifact = $artifact; - } - - /** - * Convert the response message to an XML element. - * - * @return DOMElement This response. - */ - public function toUnsignedXML() { - - $root = parent::toUnsignedXML(); - $artifactelement = $this->document->createElementNS(SAML2_Const::NS_SAMLP, 'Artifact', $this->artifact); - $root->appendChild($artifactelement); - return $root; - } - - - - -} |