Пример #1
0
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();
}
Пример #2
0
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;
}
Пример #3
0
QString Token::plaintext(const QString& message, const QString& key) const
{
    return QString( consSecret() + "&" + tokenSecret() );

}