/** * 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_PERSISTENT; if (!isset($config['attribute'])) { throw new SimpleSAML_Error_Exception('PersistentNameID: Missing required option \'attribute\'.'); } $this->attribute = $config['attribute']; }
/** * Initialize this filter, parse configuration. * * @param array $config Configuration information about this filter. * @param mixed $reserved For future use. * * @throws SimpleSAML_Error_Exception If the required options 'Format' or 'attribute' are missing. */ public function __construct($config, $reserved) { parent::__construct($config, $reserved); assert('is_array($config)'); if (!isset($config['Format'])) { throw new SimpleSAML_Error_Exception("AttributeNameID: Missing required option 'Format'."); } $this->format = (string) $config['Format']; if (!isset($config['attribute'])) { throw new SimpleSAML_Error_Exception("AttributeNameID: Missing required option 'attribute'."); } $this->attribute = (string) $config['attribute']; }
/** * Initialize this filter, parse configuration. * * @param array $config Configuration information about this filter. * @param mixed $reserved For future use. * * @throws SimpleSAML_Error_Exception If the 'attribute' option is not specified. */ public function __construct($config, $reserved) { parent::__construct($config, $reserved); assert('is_array($config)'); $this->format = SAML2_Const::NAMEID_PERSISTENT; if (!isset($config['attribute'])) { throw new SimpleSAML_Error_Exception("PersistentNameID: Missing required option 'attribute'."); } $this->attribute = $config['attribute']; if (isset($config['allowUnspecified'])) { $this->allowUnspecified = (bool) $config['allowUnspecified']; } if (isset($config['allowDifferent'])) { $this->allowDifferent = (bool) $config['allowDifferent']; } if (isset($config['alwaysCreate'])) { $this->alwaysCreate = (bool) $config['alwaysCreate']; } }
/** * 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; }