TYPO3 CMS  TYPO3_6-2
AjaxLoginHandler.php
Go to the documentation of this file.
1 <?php
3 
28  public function getRsaPublicKey(array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $parent) {
29  $backend = \TYPO3\CMS\Rsaauth\Backend\BackendFactory::getBackend();
30  if ($backend !== NULL) {
31  $keyPair = $backend->createNewKeyPair();
33  $storage->put($keyPair->getPrivateKey());
34  session_commit();
35  $parent->addContent('publicKeyModulus', $keyPair->getPublicKeyModulus());
36  $parent->addContent('exponent', sprintf('%x', $keyPair->getExponent()));
37  $parent->setContentFormat('json');
38  } else {
39  $parent->setError('No OpenSSL backend could be obtained for rsaauth.');
40  }
41  }
42 }
$parameters
Definition: FileDumpEID.php:15
getRsaPublicKey(array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $parent)