public getPublicKey ( ) : string | ||
return | string | the public key used for generating the token. A random one will be generated and returned if this is not set. |
public function getPublicKey()
{
if (($publicKey = $this->getViewState('PublicKey', '')) === '') {
$publicKey = $this->generateRandomKey();
$this->setPublicKey($publicKey);
}
return $publicKey;
}