Package org.glite.authz.pap.common.exceptions

Examples of org.glite.authz.pap.common.exceptions.PAPConfigurationException


    private AuthorizationEngine( String papAuthzConfFile ) {

        File papConfFile = new File( papAuthzConfFile );

        if ( !papConfFile.exists() )
            throw new PAPConfigurationException(
                    "PAP Authorization configuration file not found: "
                            + papConfFile.getAbsolutePath() );

        globalContext = PAPContext.instance( "global-context" );
View Full Code Here


      DefaultBootstrap.bootstrap();

    } catch (ConfigurationException e) {

      logger.error("Error configuring OpenSAML:" + e.getMessage());
      throw new PAPConfigurationException("Error configuring OpenSAML:"
          + e.getMessage(), e);
    }

    // Boostrap wizard attributes
    String configFileName = PAPConfiguration.instance()
View Full Code Here

     * @throws PAPConfigurationException, in case the PAPConfiguration hasn't been properly initialized with the initialize method.
     */
    public synchronized static PAPConfiguration instance() {

        if ( instance == null )
            throw new PAPConfigurationException(
                    "Please initialize configuration before calling the instance method!" );

        return instance;

    }
View Full Code Here

        File papConfFile = new File( papConfDir + "/"
                + DEFAULT_PAP_CONFIGURATION_FILE_NAME);

        if ( !papConfFile.exists() )
            throw new PAPConfigurationException(
                    "PAP startup configuration file does not exists on path:"
                            + papConfFile.getAbsolutePath() );

        try {

            startupConfiguration = new INIConfiguration( papConfFile );
            configuration.addConfiguration( startupConfiguration );
           
           

        } catch ( org.apache.commons.configuration.ConfigurationException e ) {

            logger.error( "Error parsing PAP distribution configuration: "
                    + e.getMessage(), e );
            throw new PAPConfigurationException(
                    "Error parsing PAP distribution configuration: "
                            + e.getMessage(), e );

        }
View Full Code Here

            startupConfiguration.save();

        } catch ( ConfigurationException e ) {

            throw new PAPConfigurationException(
                    "Error saving policy distribution configuration: "
                            + e.getMessage(), e );
        }

    }
View Full Code Here

           
            try {
                DefaultBootstrap.bootstrap();
                notInitilized = false;
            } catch (ConfigurationException e) {
                throw new PAPConfigurationException("Error initializing OpenSAML library", e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.glite.authz.pap.common.exceptions.PAPConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.