org.wso2.carbon.integration.common.admin.client
Class SecurityAdminServiceClient

java.lang.Object
  extended by org.wso2.carbon.integration.common.admin.client.SecurityAdminServiceClient

public class SecurityAdminServiceClient
extends Object


Constructor Summary
SecurityAdminServiceClient(String backEndUrl, String sessionCookie)
           
SecurityAdminServiceClient(String backEndUrl, String userName, String password)
           
 
Method Summary
 void applyKerberosSecurityPolicy(String serviceName, String policyId, String ServicePrincipalName, String ServicePrincipalPassword)
           
 void applySecurity(String serviceName, String policyId, String[] userGroups, String[] trustedKeyStoreArray, String privateStore)
          Apply security by passing policy id
 void applySecurity(String serviceName, String policyPath, String[] trustedKeyStoreArray, String privateStore, String[] userGroups)
          Apply security by passing policy path
 void disableSecurity(String serviceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityAdminServiceClient

public SecurityAdminServiceClient(String backEndUrl,
                                  String sessionCookie)
                           throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

SecurityAdminServiceClient

public SecurityAdminServiceClient(String backEndUrl,
                                  String userName,
                                  String password)
                           throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault
Method Detail

applySecurity

public void applySecurity(String serviceName,
                          String policyId,
                          String[] userGroups,
                          String[] trustedKeyStoreArray,
                          String privateStore)
                   throws org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionException,
                          RemoteException
Apply security by passing policy id

Parameters:
serviceName - service name
policyId - policy id
userGroups - user groups
trustedKeyStoreArray - trusted key store Array
privateStore - private store
Throws:
org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionException
RemoteException

applySecurity

public void applySecurity(String serviceName,
                          String policyPath,
                          String[] trustedKeyStoreArray,
                          String privateStore,
                          String[] userGroups)
                   throws org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionException,
                          RemoteException
Apply security by passing policy path

Parameters:
serviceName - service name
policyPath - policy path
trustedKeyStoreArray - trusted key store Array
privateStore - private store
userGroups - user groups
Throws:
org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionException
RemoteException

applyKerberosSecurityPolicy

public void applyKerberosSecurityPolicy(String serviceName,
                                        String policyId,
                                        String ServicePrincipalName,
                                        String ServicePrincipalPassword)
                                 throws org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionException,
                                        RemoteException
Throws:
org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionException
RemoteException

disableSecurity

public void disableSecurity(String serviceName)
                     throws org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionException,
                            RemoteException
Throws:
org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionException
RemoteException


Copyright © 2015 WSO2. All rights reserved.