void SmartIODBox::setTokenSecret(const QString &s) { if( p->tsecret == s ) return; p->tsecret = s; foreach( SmartIODBoxSingle *s, p->threads ) QMetaObject::invokeMethod(s, __FUNCTION__, Qt::QueuedConnection, Q_ARG(QString,p->tsecret) ); emit tokenSecret(); }
bool Utils::isAuthorized() { QString ck = customerKey(); QString cs = customerSecret(); QString t = token(); QString ts = tokenSecret(); if(ck!="" && cs!="" && t!="" && ts!="") return true; else return false; }
QString Token::plaintext(const QString& message, const QString& key) const { return QString( consSecret() + "&" + tokenSecret() ); }