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

Reformat sspmod_saml_Auth_Process_TransientNameID and fix some phpdoc comments.

parent 985b155e
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Authproc filter to generate a transient NameID.
* Authentication processing filter to generate a transient NameID.
*
* @package simpleSAMLphp
* @package SimpleSAMLphp
*/
class sspmod_saml_Auth_Process_TransientNameID extends sspmod_saml_BaseNameIDGenerator {
/**
* Initialize this filter, parse configuration
*
* @param array $config Configuration information about this filter.
* @param mixed $reserved For future use.
*/
public function __construct($config, $reserved) {
parent::__construct($config, $reserved);
assert('is_array($config)');
$this->format = SAML2_Const::NAMEID_TRANSIENT;
}
class sspmod_saml_Auth_Process_TransientNameID extends sspmod_saml_BaseNameIDGenerator
{
/**
* Initialize this filter, parse configuration
*
* @param array $config Configuration information about this filter.
* @param mixed $reserved For future use.
*/
public function __construct($config, $reserved)
{
parent::__construct($config, $reserved);
assert('is_array($config)');
/**
* Get the NameID value.
*
* @return string|NULL The NameID value.
*/
protected function getValue(array &$state) {
$this->format = SAML2_Const::NAMEID_TRANSIENT;
}
return SimpleSAML\Utils\Random::generateID();
}
/**
* Get the NameID value.
*
* @param array $state The state array.
* @return string|null The NameID value.
*/
protected function getValue(array &$state)
{
return SimpleSAML\Utils\Random::generateID();
}
}
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