String secret = EncryptDecryptUtil.makeRandomString();
String[] scopes = (String[]) map.get(Constants.SCOPES);
String[] permissions = (String[]) map.get(Constants.PERMISSONS);
// AccessTokens accessToken = new AccessTokens(consumerKey, token,
// scopes[0], permissions[0], secret);
AccessTokens accessToken = new AccessTokens();
accessToken.setKey(consumerKey);
accessToken.setPermissions(permissions[0]);
accessToken.setScopes(scopes[0]);
accessToken.setSecret(secret);
accessToken.setToken(token);
accessTokensDao.makeAccessToken(accessToken);
response.setT(accessToken);
response.setCodeExcute(Constants.OK);
return response;
}