CreateXACML.java revision 5819e70cd33d98751fbe907e0a358c3269159185
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * The contents of this file are subject to the terms
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * of the Common Development and Distribution License
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * (the License). You may not use this file except in
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * compliance with the License.
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * You can obtain a copy of the License at
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * https://opensso.dev.java.net/public/CDDLv1.0.html or
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * See the License for the specific language governing
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * permission and limitations under the License.
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * When distributing Covered Code, include this CDDL
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * Header Notice in each file and include the License file
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * If applicable, add the following below the CDDL Header,
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * with the fields enclosed by brackets [] replaced by
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * your own identifying information:
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * "Portions Copyrighted [year] [name of copyright owner]"
f71f7a61dec7c9089378d14493ad564a1dedf0b5neil_a_wilson * $Id: ImportXACML.java,v 1.3 2010/01/11 01:21:01 dillidorai Exp $
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilson * Portions Copyrighted 2011-2016 ForgeRock AS.
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport static com.sun.identity.cli.LogWriter.*;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport static org.forgerock.openam.entitlement.utils.EntitlementUtils.getEntitlementConfiguration;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport org.forgerock.guice.core.InjectorHolder;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport org.forgerock.openam.cli.entitlement.XACMLUtils;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport org.forgerock.openam.entitlement.service.ApplicationServiceFactory;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport org.forgerock.openam.entitlement.service.ResourceTypeService;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.cli.AuthenticatedCommand;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.entitlement.EntitlementConfiguration;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.entitlement.EntitlementException;
24d6db06810f2ea747f6dff60d483e4fca3aaa13davidelyimport com.sun.identity.entitlement.PrivilegeManager;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.entitlement.opensso.SubjectUtils;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.entitlement.xacml3.SearchFilterFactory;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.entitlement.xacml3.XACMLExportImport;
81b5d78d935a0c395978125a3c85ee824cbd7705neil_a_wilsonimport com.sun.identity.entitlement.xacml3.XACMLExportImport.ImportStep;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.entitlement.xacml3.XACMLReaderWriter;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.entitlement.xacml3.validation.PrivilegeValidator;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.entitlement.xacml3.validation.RealmValidator;
7cb5efa1e2554898dea45a0da062781a41b3f2f5neil_a_wilsonimport com.sun.identity.sm.OrganizationConfigManager;
ldapLogin();
getAdminID());
throw clie;
new XACMLReaderWriter(),
new SearchFilterFactory(),
service);
} catch (EntitlementException e) {
} catch (SMSException e) {
if (isDryRun()) {
if (isDryRun()) {
if (isDryRun()) {
if (isDryRun()) {
} catch (FileNotFoundException e) {
return inputStream;
if (isOutfileSet()) {
} catch (FileNotFoundException e) {
} catch (SecurityException e) {
private boolean isDryRun() {
private boolean isOutfileSet() {