public function generateToken($token, KeyPairReference $keyPair = null)
	{
		return new Token($token, $this->prepareKeyPair($keyPair));
	}
public function generateToken($token, KeyPairReference $keyPair = null)
	{
		return new Token($token, $this->prepareKeyPair($keyPair));
	}
public function generateToken ( $ token , KeyPairReference $ keyPair = null ) { return new Token ( $ token , $ this -> prepareKeyPair ( $ keyPair ) ) ; }
Generates a new token object

@param  string 					$token 		token string to use
@param  KeyPairReference|null 	$keyPair 	key pair to use with encrypting token (optional)
@return TokenInterface generated token
Generates a new token object