public class SecurityConfigAdminService
extends org.wso2.carbon.core.AbstractAdmin
| Constructor and Description |
|---|
SecurityConfigAdminService() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateUsernameTokenAuthentication(String serviceName,
String[] userGroups) |
void |
applyKerberosSecurityPolicy(String serviceName,
String policyId,
String servicePrincipalName,
String servicePrincipalPassword)
This method will apply Kerberos security policy to a given service.
|
void |
applySecurity(String serviceName,
String policyId,
String policyPath,
String[] trustedStores,
String privateStore,
String[] userGroupNames) |
void |
disableSecurityOnService(String serviceName) |
SecurityScenarioDataWrapper |
getScenarios(String serviceName) |
SecurityConfigData |
getSecurityConfigData(String serviceName,
String scenarioId,
String policyPath) |
SecurityScenarioData |
getSecurityScenario(String sceneId) |
protected org.wso2.carbon.user.core.UserRealm |
getUserRealm() |
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, setConfigurationContext, setPermissionUpdateTimestampprotected org.wso2.carbon.user.core.UserRealm getUserRealm()
getUserRealm in class org.wso2.carbon.core.AbstractAdminpublic void activateUsernameTokenAuthentication(String serviceName, String[] userGroups) throws SecurityConfigException
SecurityConfigExceptionpublic void disableSecurityOnService(String serviceName) throws SecurityConfigException
SecurityConfigExceptionpublic void applySecurity(String serviceName, String policyId, String policyPath, String[] trustedStores, String privateStore, String[] userGroupNames) throws SecurityConfigException
SecurityConfigExceptionpublic void applyKerberosSecurityPolicy(String serviceName, String policyId, String servicePrincipalName, String servicePrincipalPassword) throws SecurityConfigException
serviceName - Name of the service that security policy is applied.policyId - The scenario id.servicePrincipalName - Service principal name.servicePrincipalPassword - Service principal password.SecurityConfigException - If unable to add kerberos attributes.public SecurityScenarioDataWrapper getScenarios(String serviceName) throws SecurityConfigException
SecurityConfigExceptionpublic SecurityScenarioData getSecurityScenario(String sceneId) throws SecurityConfigException
SecurityConfigExceptionpublic SecurityConfigData getSecurityConfigData(String serviceName, String scenarioId, String policyPath) throws SecurityConfigException
SecurityConfigExceptionCopyright © 2020 WSO2. All rights reserved.