public class XACMLExportImport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XACMLExportImport.PrivilegeManagerFactory
Factory to allow PrivilegeManager to be mocked in tests
|
Constructor and Description |
---|
XACMLExportImport(XACMLExportImport.PrivilegeManagerFactory privilegeManagerFactory,
XACMLReaderWriter xacmlReaderWriter,
PrivilegeValidator privilegeValidator,
SearchFilterFactory searchFilterFactory,
Debug debug,
ApplicationServiceFactory applicationServiceFactory,
ResourceTypeService resourceTypeService)
Creates an instance of the XACMLExportImport with dependencies provided.
|
Modifier and Type | Method and Description |
---|---|
PolicySet |
exportXACML(String realm,
Subject admin,
List<String> filters)
Performs an export of all Policies found in the Privilege Manager that match the
provided filters.
|
List<ImportStep> |
importXacml(String realm,
InputStream xacml,
Subject admin,
boolean dryRun)
Performs the Import based on the given Stream.
|
public static final String PREFIX
@Inject public XACMLExportImport(XACMLExportImport.PrivilegeManagerFactory privilegeManagerFactory, XACMLReaderWriter xacmlReaderWriter, PrivilegeValidator privilegeValidator, SearchFilterFactory searchFilterFactory, @Named(value="Entitlement") Debug debug, ApplicationServiceFactory applicationServiceFactory, ResourceTypeService resourceTypeService)
privilegeManagerFactory
- Non null, required to create PrivilegeManager instances.xacmlReaderWriter
- Non null, required for translating privileges to/from XACML XML.privilegeValidator
- Non null, required for validation of imported privileges.searchFilterFactory
- Non null, required for SearchFilter operations.debug
- Non null.applicationServiceFactory
- Application service factory responsible for creating the application service.resourceTypeService
- Resource type service responsible for creating resource types.public List<ImportStep> importXacml(String realm, InputStream xacml, Subject admin, boolean dryRun) throws EntitlementException
realm
- Non null Realm to populate with the Policies.xacml
- Non null stream to read.admin
- Non null admin Subject.dryRun
- boolean flag, indicating import steps should be reported but not applied.EntitlementException
- If there was any unexpected error.public PolicySet exportXACML(String realm, Subject admin, List<String> filters) throws EntitlementException
realm
- Non null realm.admin
- Non null admin subject to authenticate as.filters
- Non null, but maybe empty filters to select Privileges against.EntitlementException
- If there was any problem with the generation of Policies.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.