Announcement Announcement Module
Collapse
No announcement yet.
Generating Consumer Key & Consumer Secret Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Generating Consumer Key & Consumer Secret

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

  • #2
    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);
    	}

    Comment

    Working...
    X