for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Happyr\ApiBundle\Security\Authentication\Token;
use Symfony\Component\Security\Core\Authentication\Token\AbstractToken;
/**
* Sets up a custom token for Wsse.
*
* @author Toby Ryuk
*/
class WsseUserToken extends AbstractToken
{
* @var string
private $created;
private $digest;
private $nonce;
* WsseUserToken constructor.
* @param array $roles
public function __construct(array $roles = [])
parent::__construct($roles);
$this->setAuthenticated(count($roles) > 0);
}
* @return string
public function getCredentials()
return '';
public function getCreated()
return $this->created;
* @param string $created
* @return WsseUserToken
public function setCreated($created)
$this->created = $created;
return $this;
public function getDigest()
return $this->digest;
* @param string $digest
public function setDigest($digest)
$this->digest = $digest;
public function getNonce()
return $this->nonce;
* @param string $nonce
public function setNonce($nonce)
$this->nonce = $nonce;