Results 1 to 2 of 2

Thread: Generating Consumer Key & Consumer Secret

  1. #1
    Join Date
    May 2012
    Posts
    27

    Default Generating Consumer Key & Consumer Secret

    What should I be using to generate consumer key and consumer secret for oauth 1?

  2. #2
    Join Date
    May 2012
    Posts
    27

    Default

    Quote Originally Posted by thedug View Post
    What should I be using to generate consumer key and consumer secret for oauth 1?
    This seems adequate...

    Code:
    	public String createKey() {
    		char[] buffer = new char[64];
    		for (int idx = 0; idx < buffer.length; ++idx){
    			buffer[idx] = symbols.charAt(secureRandomProvider.nextInt(symbols.length()));
    		}
    		return new String(buffer);
    	}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •