Ejemplo n.º 1
0
 public function testTypekeyOptionsGetSet()
 {
     $options = new ezcAuthenticationTypekeyOptions();
     $filter = new ezcAuthenticationTypekeyFilter();
     $filter->setOptions($options);
     $this->assertEquals($options, $filter->getOptions());
 }
Ejemplo n.º 2
0
 /**
  * Fetches the public keys from the specified file or URL $file.
  *
  * The file must be composed of space-separated values for p, g, q, and
  * pub_key, like this:
  *   p=<value> g=<value> q=<value> pub_key=<value>
  *
  * The format of the returned array is:
  * <code>
  *   array( 'p' => p_val, 'g' => g_val, 'q' => q_val, 'pub_key' => pub_key_val )
  * </code>
  *
  * @throws ezcAuthenticationTypekeyException
  *         if the keys from the TypeKey public keys file could not be fetched
  * @return array(string=>string)
  */
 public function fetchPublicKeys($file)
 {
     return parent::fetchPublicKeys($file);
 }