package com.company;
import java.sql.Timestamp;
import java.util.*;


public class TwiAPIGetToken
{
    private String CONSUMER_KEY;
    private String CONSUMER_KEY_SECRET;
    private String ACCESSTOKEN;
    private String ACCESSSECRET;



    byte[]signatureHash;

    public TwiAPIGetToken(String CONSUMER_KEY, String CONSUMER_KEY_SECRET, String ACCESSSTOKEN, String ACCESSSECRET){
        this.CONSUMER_KEY=CONSUMER_KEY;
        this.CONSUMER_KEY_SECRET=CONSUMER_KEY_SECRET;
        this.ACCESSTOKEN=ACCESSSTOKEN;
        this.ACCESSSECRET=ACCESSSECRET;
        try {
            signatureHash = CONSUMER_KEY_SECRET.getBytes("US-ASCII");
            signatureHash =ACCESSSECRET.getBytes("US-ASCII");
        }
        catch (Exception e){
            e.printStackTrace();
            return;
        }
    }
    public String getCONSUMER_KEY(){
        return CONSUMER_KEY;
    }
    public String getCONSUMER_KEY_SECRET(){
        return CONSUMER_KEY_SECRET;
    }
    public String getACCESSTOKEN(){
        return ACCESSTOKEN;
    }
    public String getACCESSSECRET(){
        return ACCESSSECRET;
    }
    static String GenerateNonce(){
        Random rnd =new Random();
        int val;
        val=rnd.nextInt(123400);
        return rnd.toString();
    }
}

@@ -236,581 +236,8 @@
 T;%0A%0A
-%0A%0A    byte%5B%5DsignatureHash;%0A%0A    public TwiAPIGetToken(String CONSUMER_KEY, String CONSUMER_KEY_SECRET, String ACCESSSTOKEN, String ACCESSSECRET)%7B%0A        this.CONSUMER_KEY=CONSUMER_KEY;%0A        this.CONSUMER_KEY_SECRET=CONSUMER_KEY_SECRET;%0A        this.ACCESSTOKEN=ACCESSSTOKEN;%0A        this.ACCESSSECRET=ACCESSSECRET;%0A        try %7B%0A            signatureHash = CONSUMER_KEY_SECRET.getBytes(%22US-ASCII%22);%0A            signatureHash =ACCESSSECRET.getBytes(%22US-ASCII%22);%0A        %7D%0A        catch (Exception e)%7B%0A            e.printStackTrace();%0A            return;%0A        %7D%0A    %7D%0A
     

Update TwiAPIGetToken.java