本文整理汇总了Java中org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient类的典型用法代码示例。如果您正苦于以下问题:Java SecurityAdminServiceClient类的具体用法?Java SecurityAdminServiceClient怎么用?Java SecurityAdminServiceClient使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SecurityAdminServiceClient类属于org.wso2.carbon.integration.common.admin.client包,在下文中一共展示了SecurityAdminServiceClient类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: secureService
import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; //导入依赖的package包/类
private void secureService(int policyId)
throws SecurityAdminServiceSecurityConfigExceptionException, RemoteException,
InterruptedException, XPathExpressionException {
SecurityAdminServiceClient securityAdminServiceClient = new SecurityAdminServiceClient(dssContext.getContextUrls().getBackEndUrl(),sessionCookie);
if (TestConfigurationProvider.isPlatform()) {
//todo
/*securityAdminServiceClient.applySecurity(serviceName, policyId + "", new String[]{"admin"},
new String[]{userInfo.getDomain().replace('.', '-') + ".jks"},
userInfo.getDomain().replace('.', '-') + ".jks");*/
} else {
securityAdminServiceClient.applySecurity(serviceName, policyId + "", new String[]{"admin"},
new String[]{"wso2carbon.jks"}, "wso2carbon.jks");
}
log.info("Security Scenario " + policyId + " Applied");
Thread.sleep(1000);
}
示例2: applySecurity
import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; //导入依赖的package包/类
protected void applySecurity(String serviceName, int policyId, String[] userGroups)
throws SecurityAdminServiceSecurityConfigExceptionException, RemoteException,
InterruptedException {
SecurityAdminServiceClient securityAdminServiceClient = new SecurityAdminServiceClient(contextUrls.getBackEndUrl(), sessionCookie);
// if (FrameworkFactory.getFrameworkProperties(ProductConstant.ESB_SERVER_NAME).getEnvironmentSettings().is_runningOnStratos()) {
// securityAdminServiceClient.applySecurity(serviceName, policyId + "", userGroups,
// new String[]{"service.jks"}, "service.jks");
// } else {
securityAdminServiceClient.applySecurity(serviceName, policyId + "", userGroups,
new String[]{"wso2carbon.jks"}, "wso2carbon.jks");
// }
log.info("Security Scenario " + policyId + " Applied");
Thread.sleep(1000);
}
示例3: applySecurity
import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; //导入依赖的package包/类
private void applySecurity(String scenarioNumber, String serviceName, String userGroup)
throws Exception {
securityAdminServiceClient = new SecurityAdminServiceClient
(contextUrls.getBackEndUrl(), userInfo.getUserName(), userInfo.getPassword());
String path = TestConfigurationProvider.getKeyStoreLocation();
String KeyStoreName = path.substring(path.lastIndexOf(File.separator) + 1, path.length());
if (userGroup != null) {
USER_GROUP = userGroup;
}
securityAdminServiceClient.applySecurity(serviceName, scenarioNumber, new String[]{USER_GROUP},
new String[]{KeyStoreName}, KeyStoreName);
Thread.sleep(2000);
}
示例4: secureService
import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; //导入依赖的package包/类
private void secureService()
throws SecurityAdminServiceSecurityConfigExceptionException, RemoteException, InterruptedException,
XPathExpressionException {
SecurityAdminServiceClient securityAdminServiceClient =
new SecurityAdminServiceClient(dssContext.getContextUrls().getBackEndUrl(), sessionCookie);
securityAdminServiceClient.applySecurity(serviceName, Integer.toString(1) + "", new String[] { "admin" },
new String[] { "wso2carbon.jks" }, "wso2carbon.jks");
log.info("Security Scenario Applied");
Thread.sleep(6000);
}
示例5: secureServiceWithUT
import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; //导入依赖的package包/类
private void secureServiceWithUT() throws Exception {
SecurityAdminServiceClient securityAdminServiceClient = new SecurityAdminServiceClient(dssContext.getContextUrls().getBackEndUrl(), sessionCookie);
securityAdminServiceClient.applySecurity(serviceName, "1", new String[]{userInfo.getUserName()},
new String[]{"wso2carbon.jks"}, "wso2carbon.jks");
log.info("Security Scenario " + "1" + " Applied");
Thread.sleep(2000);
}
示例6: applySecurity
import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; //导入依赖的package包/类
private void applySecurity(String scenarioNumber, String serviceName, String userGroup)
throws Exception {
securityAdminServiceClient = new SecurityAdminServiceClient
(context.getContextUrls().getBackEndUrl(), userInfo.getUserName(), userInfo.getPassword());
String path = TestConfigurationProvider.getKeyStoreLocation();
String KeyStoreName = path.substring(path.lastIndexOf(File.separator) + 1, path.length());
if (userGroup != null) {
USER_GROUP = userGroup;
}
securityAdminServiceClient.applySecurity(serviceName, scenarioNumber, new String[]{USER_GROUP},
new String[]{KeyStoreName}, KeyStoreName);
Thread.sleep(2000);
}
示例7: applySecurity
import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; //导入依赖的package包/类
private void applySecurity(String scenarioNumber, String serviceName, String userGroup)
throws Exception {
securityAdminServiceClient = new SecurityAdminServiceClient
(contextUrls.getBackEndUrl(), userInfo.getUserName(), userInfo.getPassword());
String path = TestConfigurationProvider.getKeyStoreLocation();
String KeyStoreName = path.substring(path.lastIndexOf(File.separator) + 1, path.length());
if (userGroup != null) {
USER_GROUP = userGroup;
}
securityAdminServiceClient.applySecurity(serviceName, scenarioNumber, new String[]{USER_GROUP},
new String[]{KeyStoreName}, KeyStoreName);
Thread.sleep(2000);
}
示例8: disableSecurity
import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; //导入依赖的package包/类
private void disableSecurity()
throws SecurityAdminServiceSecurityConfigExceptionException, RemoteException,
XPathExpressionException {
SecurityAdminServiceClient securityAdminServiceClient = new SecurityAdminServiceClient(
context.getContextUrls().getBackEndUrl(), sessionCookie);
securityAdminServiceClient.disableSecurity("StockQuoteProxy");
}
示例9: disableSecurity
import org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient; //导入依赖的package包/类
private void disableSecurity()
throws SecurityAdminServiceSecurityConfigExceptionException, RemoteException {
SecurityAdminServiceClient securityAdminServiceClient = new SecurityAdminServiceClient(contextUrls.getBackEndUrl(), sessionCookie);
securityAdminServiceClient.disableSecurity("StockQuoteProxy");
}