@Override
    public String getSignature(String baseString, String apiSecret, String tokenSecret) {
        try {
            Preconditions.checkEmptyString(baseString, "Base string cant be null or empty string");
            Preconditions.checkEmptyString(apiSecret, "Api secret cant be null or empty string");
            return doSign(baseString, OAuthEncoder.encode(apiSecret) + '&' + OAuthEncoder.encode(tokenSecret));
        } catch (UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeyException | RuntimeException e) {
            throw new OAuthSignatureException(baseString, e);
        }
    }
@ Override public String getSignature ( String baseString , String apiSecret , String tokenSecret ) { try { Preconditions . checkEmptyString ( baseString , "Base string cant be null or empty string" ) ; Preconditions . checkEmptyString ( apiSecret , "Api secret cant be null or empty string" ) ; return doSign ( baseString , OAuthEncoder . encode ( apiSecret ) + '&' + OAuthEncoder . encode ( tokenSecret ) ) ; } catch ( UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeyException | RuntimeException e ) { throw new OAuthSignatureException ( baseString , e ) ; } }
{@inheritDoc}