Skip to content
Snippets Groups Projects
Commit 373a6850 authored by Olav Morken's avatar Olav Morken
Browse files

SimpleSAML_XML_AuthnResponse: Remove unused class.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1698 44740490-163a-0410-bde0-09ae8108e29a
parent e355ef21
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Abstract class of an Authentication response
*
* @author Andreas kre Solberg, UNINETT AS. <andreas.solberg@uninett.no>
* @package simpleSAMLphp
* @version $Id$
* @abstract
*/
abstract class SimpleSAML_XML_AuthnResponse {
private $configuration = null;
private $metadata = 'default.php';
private $message = null;
private $dom;
private $relayState = null;
private $validIDs = null;
const PROTOCOL = 'urn:oasis:names:tc:SAML:2.0';
function __construct(SimpleSAML_Configuration $configuration, SimpleSAML_Metadata_MetaDataStorageHandler $metadatastore) {
$this->configuration = $configuration;
$this->metadata = $metadatastore;
}
abstract public function validate();
abstract public function createSession();
abstract public function getAttributes();
abstract public function getIssuer();
abstract public function getNameID();
public function setXML($xml) {
$this->message = $xml;
}
public function getXML() {
return $this->message;
}
public function setRelayState($relayState) {
$this->relayState = $relayState;
}
public function getRelayState() {
return $this->relayState;
}
public function getDOM() {
if (isset($this->message) ) {
if (isset($this->dom)) {
return $this->dom;
}
$token = new DOMDocument();
$token->loadXML(str_replace ("\r", "", $this->message));
if (empty($token)) {
throw new Exception("Unable to load token");
}
$this->dom = $token;
return $this->dom;
}
return null;
}
}
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment