public class SecurityConfigAdmin extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DISABLE_REST |
static String |
IDENTITY_CONFIG_DIR |
static String |
POLICY_PATH |
static String |
USER |
| Constructor and Description |
|---|
SecurityConfigAdmin(org.apache.axis2.engine.AxisConfiguration config) |
SecurityConfigAdmin(org.apache.axis2.engine.AxisConfiguration config,
org.wso2.carbon.registry.core.Registry reg,
CallbackHandler cb) |
SecurityConfigAdmin(org.wso2.carbon.user.core.UserRealm realm,
org.wso2.carbon.registry.core.Registry registry,
org.apache.axis2.engine.AxisConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateUsernameTokenAuthentication(String serviceName,
String[] userGroups) |
void |
applySecurity(String serviceName,
String scenarioId,
KerberosConfigData kerberosConfigurations) |
void |
applySecurity(String serviceName,
String scenarioId,
String policyPath,
String[] trustedStores,
String privateStore,
String[] userGroups) |
protected void |
disableRESTCalls(String serviceName,
String scenrioId) |
void |
disableSecurityOnService(String serviceName) |
protected boolean |
engageModules(String scenarioId,
String serviceName,
org.apache.axis2.description.AxisService axisService) |
void |
forceActualServiceDeployment(String serviceName)
If the given service is in ghost state, force the actual service deployment.
|
List<String> |
getAllTransports()
Get all transports in AxisConfig
|
SecurityScenarioData |
getCurrentScenario(String serviceName) |
List<String> |
getHttpsTransports()
Get "https" transports in the AxisConfig
|
String[] |
getRequiredModules(String serviceName,
String moduleId) |
SecurityConfigData |
getSecurityConfigData(String serviceName,
String scenarioId,
String policyPath) |
SecurityScenarioData |
getSecurityScenario(String sceneId) |
Properties |
getServerCryptoProperties(String privateStore,
String[] trustedCertStores) |
boolean |
isHttpsTransportOnly(org.apache.neethi.Policy policy)
Check the policy to see whether the service should only be exposed in
HTTPS
|
void |
populateRampartConfig(org.apache.rampart.policy.model.RampartConfig rampartConfig,
Properties props,
KerberosConfigData kerberosConfigurations) |
SecurityScenario |
readCurrentScenario(String serviceName) |
void |
setServiceTransports(String serviceId,
List<String> transportProtocols)
Expose this service only via the specified transport
|
public static final String USER
public static final String IDENTITY_CONFIG_DIR
public static final String DISABLE_REST
public static final String POLICY_PATH
public SecurityConfigAdmin(org.apache.axis2.engine.AxisConfiguration config)
throws SecurityConfigException
SecurityConfigExceptionpublic SecurityConfigAdmin(org.apache.axis2.engine.AxisConfiguration config,
org.wso2.carbon.registry.core.Registry reg,
CallbackHandler cb)
public SecurityConfigAdmin(org.wso2.carbon.user.core.UserRealm realm,
org.wso2.carbon.registry.core.Registry registry,
org.apache.axis2.engine.AxisConfiguration config)
throws SecurityConfigException
SecurityConfigExceptionpublic SecurityScenarioData getSecurityScenario(String sceneId) throws SecurityConfigException
SecurityConfigExceptionpublic SecurityScenarioData getCurrentScenario(String serviceName) throws SecurityConfigException
SecurityConfigExceptionpublic String[] getRequiredModules(String serviceName, String moduleId) throws Exception
Exceptionpublic void disableSecurityOnService(String serviceName) throws SecurityConfigException
SecurityConfigExceptionpublic void activateUsernameTokenAuthentication(String serviceName, String[] userGroups) throws SecurityConfigException
SecurityConfigExceptionpublic void applySecurity(String serviceName, String scenarioId, KerberosConfigData kerberosConfigurations) throws SecurityConfigException
SecurityConfigExceptionpublic void applySecurity(String serviceName, String scenarioId, String policyPath, String[] trustedStores, String privateStore, String[] userGroups) throws SecurityConfigException
SecurityConfigExceptionprotected boolean engageModules(String scenarioId, String serviceName, org.apache.axis2.description.AxisService axisService) throws SecurityConfigException
SecurityConfigExceptionprotected void disableRESTCalls(String serviceName, String scenrioId) throws SecurityConfigException
SecurityConfigExceptionpublic void populateRampartConfig(org.apache.rampart.policy.model.RampartConfig rampartConfig,
Properties props,
KerberosConfigData kerberosConfigurations)
throws SecurityConfigException
SecurityConfigExceptionpublic Properties getServerCryptoProperties(String privateStore, String[] trustedCertStores) throws Exception
Exceptionpublic void setServiceTransports(String serviceId, List<String> transportProtocols) throws SecurityConfigException, org.apache.axis2.AxisFault
serviceId - service nametransportProtocols - transport protocols to exposeorg.apache.axis2.AxisFault - axisfaultSecurityConfigException - expublic boolean isHttpsTransportOnly(org.apache.neethi.Policy policy)
throws SecurityConfigException
policy - service policySecurityConfigException - expublic List<String> getHttpsTransports()
public List<String> getAllTransports()
public SecurityConfigData getSecurityConfigData(String serviceName, String scenarioId, String policyPath) throws SecurityConfigException
SecurityConfigExceptionpublic SecurityScenario readCurrentScenario(String serviceName) throws SecurityConfigException
SecurityConfigExceptionpublic void forceActualServiceDeployment(String serviceName)
serviceName - - name of the serviceCopyright © 2020 WSO2. All rights reserved.