public class TwitterSecurity extends Object
Modifier and Type | Field and Description |
---|---|
static String |
oauth_signature_encoding |
static String |
oauth_signature_method |
static String |
oauth_signature_method_param |
static String |
oauth_version |
static String |
webhook_signature_method |
Constructor and Description |
---|
TwitterSecurity() |
Modifier and Type | Method and Description |
---|---|
String |
computeAndEncodeSignature(String baseString,
String keyString,
String signature_method) |
byte[] |
computeSignatureBytes(String baseString,
String keyString,
String signature_method) |
String |
encode(String value) |
Map<String,String> |
encodeMap(Map<String,String> map) |
String |
generateAuthorizationHeaderString(Map<String,String> oauthParamMap) |
String |
generateSignatureBaseString(String method,
String request_url,
String signature_parameter_string) |
String |
generateSignatureParameterString(Map<String,String> allParamsMap) |
public static final String oauth_signature_encoding
public static final String oauth_version
public static final String oauth_signature_method_param
public static final String oauth_signature_method
public static final String webhook_signature_method
public String generateSignatureParameterString(Map<String,String> allParamsMap)
public String generateSignatureBaseString(String method, String request_url, String signature_parameter_string)
public String generateAuthorizationHeaderString(Map<String,String> oauthParamMap)
public byte[] computeSignatureBytes(String baseString, String keyString, String signature_method) throws GeneralSecurityException, UnsupportedEncodingException
public String computeAndEncodeSignature(String baseString, String keyString, String signature_method) throws GeneralSecurityException, UnsupportedEncodingException
Copyright © 2018 The Apache Software Foundation. All rights reserved.