- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QOAuth1Signature extends QtObject implements Cloneable
Implements OAuth 1 signature methods
Java wrapper for Qt class QOAuth1Signature
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QOAuth1Signature.HttpRequestMethod
Java wrapper for Qt enum QOAuth1Signature::HttpRequestMethod -
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addRequestBody(QUrlQuery body)
String
clientSharedKey()
QOAuth1Signature
clone()
QByteArray
customMethodString()
QByteArray
hmacSha1()
QOAuth1Signature.HttpRequestMethod
httpRequestMethod()
void
insert(String key, Object value)
QList<String>
keys()
QMap<String,Object>
parameters()
QByteArray
plainText()
static QByteArray
plainText(String clientSharedSecret, String tokenSecret)
QByteArray
rsaSha1()
void
setClientSharedKey(String secret)
void
setCustomMethodString(QByteArray verb)
void
setHttpRequestMethod(QOAuth1Signature.HttpRequestMethod method)
void
setParameters(Map<String,Object> parameters)
void
setTokenSecret(String secret)
void
setUrl(QUrl url)
void
swap(QOAuth1Signature other)
Object
take(String key)
String
tokenSecret()
QUrl
url()
Object
value(String key)
Overloaded function forvalue(java.lang.String, java.lang.Object)
withdefaultValue = null
.Object
value(String key, Object defaultValue)
-
Constructor Details
-
QOAuth1Signature
-
QOAuth1Signature
Overloaded constructor for
QOAuth1Signature(io.qt.core.QUrl, io.qt.network.auth.QOAuth1Signature.HttpRequestMethod, java.util.Map)
withparameters = java.util.Collections.emptyNavigableMap()
. -
QOAuth1Signature
Overloaded constructor for
QOAuth1Signature(io.qt.core.QUrl, io.qt.network.auth.QOAuth1Signature.HttpRequestMethod, java.util.Map)
with:
method = io.qt.network.auth.QOAuth1Signature.HttpRequestMethod.Post
parameters = java.util.Collections.emptyNavigableMap()
-
QOAuth1Signature
public QOAuth1Signature()Overloaded constructor for
QOAuth1Signature(io.qt.core.QUrl, io.qt.network.auth.QOAuth1Signature.HttpRequestMethod, java.util.Map)
with:
url = new io.qt.core.QUrl()
method = io.qt.network.auth.QOAuth1Signature.HttpRequestMethod.Post
parameters = java.util.Collections.emptyNavigableMap()
-
QOAuth1Signature
public QOAuth1Signature(QUrl url, QOAuth1Signature.HttpRequestMethod method, Map<String,Object> parameters) -
QOAuth1Signature
public QOAuth1Signature(QUrl url, String clientSharedKey, String tokenSecret, QOAuth1Signature.HttpRequestMethod method)Overloaded constructor for
QOAuth1Signature(io.qt.core.QUrl, java.lang.String, java.lang.String, io.qt.network.auth.QOAuth1Signature.HttpRequestMethod, java.util.Map)
withparameters = java.util.Collections.emptyNavigableMap()
. -
QOAuth1Signature
Overloaded constructor for
QOAuth1Signature(io.qt.core.QUrl, java.lang.String, java.lang.String, io.qt.network.auth.QOAuth1Signature.HttpRequestMethod, java.util.Map)
with:
method = io.qt.network.auth.QOAuth1Signature.HttpRequestMethod.Post
parameters = java.util.Collections.emptyNavigableMap()
-
QOAuth1Signature
-
QOAuth1Signature
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addRequestBody
-
clientSharedKey
-
customMethodString
-
hmacSha1
-
httpRequestMethod
-
insert
-
keys
-
parameters
-
plainText
-
rsaSha1
-
setClientSharedKey
-
setCustomMethodString
-
setHttpRequestMethod
-
setParameters
-
setTokenSecret
-
setUrl
-
swap
-
take
-
tokenSecret
-
url
-
value
Overloaded function for
value(java.lang.String, java.lang.Object)
withdefaultValue = null
. -
value
-
plainText
-
clone
-