Skip to content
Snippets Groups Projects
Commit b821e219 authored by Jaime Perez's avatar Jaime Perez Committed by Jaime Perez Crespo
Browse files

Remove getAttribute() and setAttribute() from SimpleSAML_Session.

parent c5a34ae1
No related branches found
No related tags found
No related merge requests found
...@@ -734,21 +734,6 @@ class SimpleSAML_Session { ...@@ -734,21 +734,6 @@ class SimpleSAML_Session {
} }
/**
* Retrieve a single attribute.
*
* @param string $name The name of the attribute.
* @return array|NULL The values of the given attribute.
* @deprecated
*/
public function getAttribute($name) {
if (!isset($this->authData[$this->authority]['Attributes'][$name])) {
return NULL;
}
return $this->authData[$this->authority]['Attributes'][$name];
}
/** /**
* Set the attributes for this session. * Set the attributes for this session.
* *
...@@ -763,20 +748,6 @@ class SimpleSAML_Session { ...@@ -763,20 +748,6 @@ class SimpleSAML_Session {
} }
/**
* Set the values of a single attribute.
*
* @param string $name The name of the attribute.
* @param array $value The values of the attribute.
*/
public function setAttribute($name, $value) {
assert('isset($this->authData[$this->authority])');
$this->dirty = true;
$this->authData[$this->authority]['Attributes'][$name] = $value;
}
/** /**
* Calculates the size of the session object after serialization * Calculates the size of the session object after serialization
* *
......
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