162 int next1 =
new Random().nextInt(100);
163 int next2 =
new Random().nextInt(50);
164 String clientName =
"NewAddedClient" + next1 + next2;
165 GluuOxAuthClient gluuOxAuthClient =
new GluuOxAuthClient();
166 gluuOxAuthClient.setDescription(
"");
167 gluuOxAuthClient.setDisplayName(clientName);
168 gluuOxAuthClient.setOxAuthAppType(OxAuthApplicationType.WEB);
169 GrantType[] grantTypes = { GrantType.AUTHORIZATION_CODE };
170 gluuOxAuthClient.setGrantTypes(grantTypes);
171 ResponseType[] responseTypes = { ResponseType.CODE, ResponseType.ID_TOKEN };
172 gluuOxAuthClient.setResponseTypes(responseTypes);
173 gluuOxAuthClient.setOxAuthRedirectURIs(Arrays.asList(
"https://gasmyr.livevision.com" + next1));
174 return gluuOxAuthClient;