added SignatureType and querystring signing functionallity
This commit is contained in:
1 parent
931236561a
commit
193dcd2e25
3 files changed
+33
-2
No files matched your search
@@ -10,6 +10,7 @@ public class OAuthConfig
|
||||
private String apiKey;
|
||||
private String apiSecret;
|
||||
private String callback;
|
||||
private SignatureType signatureType;
|
||||
|
||||
public OAuthConfig(String key, String secret)
|
||||
{
|
||||
@@ -52,4 +53,14 @@ public class OAuthConfig
|
||||
{
|
||||
this.callback = callback;
|
||||
}
|
||||
|
||||
public SignatureType getSignatureType()
|
||||
{
|
||||
return signatureType != null ? signatureType : SignatureType.Header;
|
||||
}
|
||||
|
||||
public void setSignatureType(SignatureType type)
|
||||
{
|
||||
this.signatureType = type;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user