oAuthAdminService.removeOAuthApplicationData(consumerKey); ApplicationManagementService appMgtService = DCRDataHolder.getInstance(). getApplicationManagementService();
log.debug("However, OAuth details for the default app will be removed."); OAuthAdminService oAuthAdminService = new OAuthAdminService(); oAuthAdminService.removeOAuthApplicationData(consumerKey); } else { log.debug("Removing Service Provider with name : " + spAppName);
oAuthAdminService.removeOAuthApplicationData(consumerKey); ApplicationManagementService appMgtService = DynamicClientRegistrationDataHolder.getInstance(). getApplicationManagementService();