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

MetaDataStorageHandlerFlatFile: Remove check for valid set name.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1965 44740490-163a-0410-bde0-09ae8108e29a
parent d460eb3a
No related branches found
No related tags found
No related merge requests found
...@@ -11,16 +11,6 @@ ...@@ -11,16 +11,6 @@
*/ */
class SimpleSAML_Metadata_MetaDataStorageHandlerFlatFile extends SimpleSAML_Metadata_MetaDataStorageSource { class SimpleSAML_Metadata_MetaDataStorageHandlerFlatFile extends SimpleSAML_Metadata_MetaDataStorageSource {
/**
* This is the valid metadata sets we know about.
*/
private static $validSets = array(
'saml20-sp-hosted', 'saml20-sp-remote','saml20-idp-hosted', 'saml20-idp-remote',
'shib13-sp-hosted', 'shib13-sp-remote', 'shib13-idp-hosted', 'shib13-idp-remote',
'wsfed-sp-hosted', 'wsfed-idp-remote',
);
/** /**
* This is the directory we will load metadata files from. The path will always end * This is the directory we will load metadata files from. The path will always end
* with a '/'. * with a '/'.
...@@ -100,7 +90,6 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerFlatFile extends SimpleSAML_Meta ...@@ -100,7 +90,6 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerFlatFile extends SimpleSAML_Meta
* key is the entity id. * key is the entity id.
*/ */
public function getMetadataSet($set) { public function getMetadataSet($set) {
assert('in_array($set, self::$validSets)');
if(array_key_exists($set, $this->cachedMetadata)) { if(array_key_exists($set, $this->cachedMetadata)) {
return $this->cachedMetadata[$set]; return $this->cachedMetadata[$set];
......
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