Package com.identityworksllc.iiq.common
Class CommonSecurityConfig
- java.lang.Object
-
- com.identityworksllc.iiq.common.CommonSecurityConfig
-
- All Implemented Interfaces:
MapDecodable
,Serializable
public class CommonSecurityConfig extends Object implements Serializable, MapDecodable
This is the implementation of the Common Security configuration object, as expected byThingAccessUtils
.The intention is that
ObjectMapper
be used to decode an instance of this class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommonSecurityConfig()
Basic constructor, which will initialize the various lists (because Jackson)
-
Method Summary
-
-
-
Constructor Detail
-
CommonSecurityConfig
public CommonSecurityConfig()
Basic constructor, which will initialize the various lists (because Jackson)
-
-
Method Detail
-
decode
public static CommonSecurityConfig decode(Map<String,Object> input) throws sailpoint.tools.GeneralException
Decodes the given Map into an instance of this class usingObjectMapper
.- Parameters:
input
- The input map- Returns:
- An instance of this class decoded from the Map
- Throws:
sailpoint.tools.GeneralException
- if any decoding failures occur
-
not
public static CommonSecurityConfig not(CommonSecurityConfig... others) throws sailpoint.tools.GeneralException
Creates a newCommonSecurityConfig
that inverts the inputs.If any of the nested checks passes, the inverted check will fail.
- Parameters:
others
- The other security configs to invert- Returns:
- The inverted security config
- Throws:
sailpoint.tools.GeneralException
- if any failures occur
-
simple
public static CommonSecurityConfig simple(String field, Object value) throws sailpoint.tools.GeneralException
Mainly intended for the test scripts, constructs a common security config based on the single given field name and value.All other values in the configuration will be empty or defaulted.
- Parameters:
field
- The field namevalue
- The field value- Returns:
- A common security config as though a map were passed with that field set only
- Throws:
sailpoint.tools.GeneralException
- if any failures occur during parsing
-
getAccessCheckFilter
public String getAccessCheckFilter()
-
getAccessCheckRule
public sailpoint.object.Rule getAccessCheckRule()
-
getAccessCheckScript
public sailpoint.object.Script getAccessCheckScript()
-
getAccessCheckSelector
public sailpoint.object.IdentitySelector getAccessCheckSelector()
-
getAllOf
public List<CommonSecurityConfig> getAllOf()
-
getDescription
public String getDescription()
-
getExcludedCapabilities
public List<String> getExcludedCapabilities()
-
getExcludedRights
public List<String> getExcludedRights()
-
getExcludedWorkgroups
public List<String> getExcludedWorkgroups()
-
getInvalidTargetFilter
public String getInvalidTargetFilter()
-
getMirrorQuicklinkPopulation
public String getMirrorQuicklinkPopulation()
-
getMirrorRole
public String getMirrorRole()
-
getNot
public List<CommonSecurityConfig> getNot()
-
getOneOf
public List<CommonSecurityConfig> getOneOf()
-
getRequiredCapabilities
public List<String> getRequiredCapabilities()
-
getRequiredRights
public List<String> getRequiredRights()
-
getRequiredWorkgroups
public List<String> getRequiredWorkgroups()
-
getSettingOffSwitch
public String getSettingOffSwitch()
-
getValidTargetCapabilities
public List<String> getValidTargetCapabilities()
-
getValidTargetExcludedCapabilities
public List<String> getValidTargetExcludedCapabilities()
-
getValidTargetExcludedRights
public List<String> getValidTargetExcludedRights()
-
getValidTargetFilter
public String getValidTargetFilter()
-
getValidTargetSelector
public sailpoint.object.IdentitySelector getValidTargetSelector()
-
getValidTargetWorkgroups
public List<String> getValidTargetWorkgroups()
-
initializeFromMap
public void initializeFromMap(Map<String,Object> input)
Stores the original map from which this entry was decoded, if possible.- Specified by:
initializeFromMap
in interfaceMapDecodable
- Parameters:
input
- The input
-
isDisabled
public boolean isDisabled()
-
isNoCache
public boolean isNoCache()
-
setAccessCheckFilter
public void setAccessCheckFilter(String accessCheckFilter)
-
setAccessCheckRule
public void setAccessCheckRule(sailpoint.object.Rule accessCheckRule)
-
setAccessCheckScript
public void setAccessCheckScript(sailpoint.object.Script accessCheckScript)
-
setAccessCheckSelector
public void setAccessCheckSelector(sailpoint.object.IdentitySelector accessCheckSelector)
-
setAllOf
public void setAllOf(List<CommonSecurityConfig> allOf)
-
setDescription
public void setDescription(String description)
-
setDisabled
public void setDisabled(boolean disabled)
-
setExcludedCapabilities
public void setExcludedCapabilities(List<String> excludedCapabilities)
-
setExcludedRights
public void setExcludedRights(List<String> excludedRights)
-
setExcludedWorkgroups
public void setExcludedWorkgroups(List<String> excludedWorkgroups)
-
setInvalidTargetFilter
public void setInvalidTargetFilter(String invalidTargetFilter)
-
setMirrorQuicklinkPopulation
public void setMirrorQuicklinkPopulation(String mirrorQuicklinkPopulation)
-
setMirrorRole
public void setMirrorRole(String mirrorRole)
-
setNoCache
public void setNoCache(boolean noCache)
-
setNot
public void setNot(List<CommonSecurityConfig> not)
-
setOneOf
public void setOneOf(List<CommonSecurityConfig> oneOf)
-
setRequiredCapabilities
public void setRequiredCapabilities(List<String> requiredCapabilities)
-
setRequiredRights
public void setRequiredRights(List<String> requiredRights)
-
setRequiredWorkgroups
public void setRequiredWorkgroups(List<String> requiredWorkgroups)
-
setSettingOffSwitch
public void setSettingOffSwitch(String settingOffSwitch)
-
setValidTargetCapabilities
public void setValidTargetCapabilities(List<String> validTargetCapabilities)
-
setValidTargetExcludedCapabilities
public void setValidTargetExcludedCapabilities(List<String> validTargetExcludedCapabilities)
-
setValidTargetExcludedRights
public void setValidTargetExcludedRights(List<String> validTargetExcludedRights)
-
setValidTargetFilter
public void setValidTargetFilter(String validTargetFilter)
-
setValidTargetSelector
public void setValidTargetSelector(sailpoint.object.IdentitySelector validTargetSelector)
-
setValidTargetWorkgroups
public void setValidTargetWorkgroups(List<String> validTargetWorkgroups)
-
toMap
public Map<String,Object> toMap()
Returns a Map representation of thisCommonSecurityConfig
.If it was originally constructed via ObjectMapper, the returned Map will be a copy of the original input. Otherwise, we will do our best to reconstruct one.
- Returns:
- The Map representation
-
-