Examples of PAPConfiguration


Examples of org.glite.authz.pap.common.PAPConfiguration

    /**
     * Triggers the shutdown of the local PAP service.
     */
    static void doShutdown() {

  PAPConfiguration conf = PAPConfiguration.instance();

  String shutdownEndpoint = String.format(
    "http://localhost:%s/shutdown",
    conf.getString(PAPConfiguration.STANDALONE_SERVICE_STANZA
      + ".shutdown_port"));

  String shutdownCommand = conf
    .getString(PAPConfiguration.STANDALONE_SERVICE_STANZA
      + ".shutdown_command");

  HttpClient httpClient = new HttpClient();

View Full Code Here

Examples of org.glite.authz.pap.common.PAPConfiguration

   *            , a default value in case the parameter is not defined
   * @return the configuration parameter value
   */
  private int getIntFromStandaloneConfiguration(String key, int defaultValue) {

    PAPConfiguration conf = PAPConfiguration.instance();
    return conf.getInt(PAPConfiguration.STANDALONE_SERVICE_STANZA + "."
        + key, defaultValue);
  }
View Full Code Here

Examples of org.glite.authz.pap.common.PAPConfiguration

   *
   */
  private String getStringFromSecurityConfiguration(String key,
      String defaultValue) {

    PAPConfiguration conf = PAPConfiguration.instance();
    return conf.getString(PAPConfiguration.SECURITY_STANZA + "." + key,
        defaultValue);
  }
View Full Code Here

Examples of org.glite.authz.pap.common.PAPConfiguration

   * @return the configuration parameter value
   */
  private String getStringFromStandaloneConfiguration(String key,
      String defaultValue) {

    PAPConfiguration conf = PAPConfiguration.instance();
    return conf.getString(PAPConfiguration.STANDALONE_SERVICE_STANZA + "."
        + key, defaultValue);

  }
View Full Code Here

Examples of org.glite.authz.pap.common.PAPConfiguration

                request.getScheme(),
                request.getServerName(),
                request.getServerPort(),
                PAPConfiguration.DEFAULT_WEBAPP_CONTEXT);
       
        PAPConfiguration conf = PAPConfiguration.instance();
       
        String issuerValue = conf.getString(PAPConfiguration.STANDALONE_SERVICE_STANZA+".entity_id", defaultEntityId);

        issuer.setValue(issuerValue);

        assertion.setIssuer(issuer);
View Full Code Here

Examples of org.glite.authz.pap.common.PAPConfiguration

    logger.info("Starting PAP service version {} ...",
        Version.getServiceVersion());

    // Initialize configuaration
    PAPConfiguration conf = PAPConfiguration.initialize(context);

    // Start autorization service
    logger.info("Starting authorization engine...");

    AuthorizationEngine.initialize(conf.getPapAuthzConfigurationFileName());

    // Bootstrap opensaml
    try {

      logger.info("Bootstraping OpenSAML...");
View Full Code Here

Examples of org.glite.authz.pap.common.PAPConfiguration

     */
    private MonitoredProperties() {

        props = new TreeMap<String, String>();

        PAPConfiguration conf = PAPConfiguration.instance();
       
        props.put(STATUS_PROP_NAME, "OK");
        props.put(SERVICE_NAME_PROP_NAME, "Argus PAP");
        props.put(SERVICE_VERSION_PROP_NAME, Version.getServiceVersion() );
        props.put(SERVICE_STARTUP_TIME_PROP_NAME, conf.getMonitoringProperty(SERVICE_STARTUP_TIME_PROP_NAME).toString());
        props.put(SERVICE_STARTUP_TIME_MILLIS_PROP_NAME, conf.getMonitoringProperty(SERVICE_STARTUP_TIME_MILLIS_PROP_NAME).toString());
       
        props.put(NUM_OF_POLICIES_PROP_NAME, conf.getMonitoringProperty(NUM_OF_POLICIES_PROP_NAME).toString());
        props.put(NUM_OF_LOCAL_POLICIES_PROP_NAME, conf.getMonitoringProperty(NUM_OF_LOCAL_POLICIES_PROP_NAME).toString());
        props.put(NUM_OF_REMOTE_POLICIES_PROP_NAME, conf.getMonitoringProperty(NUM_OF_REMOTE_POLICIES_PROP_NAME).toString());
        props.put(POLICY_LAST_MODIFICATION_TIME_PROP_NAME, conf.getMonitoringProperty(POLICY_LAST_MODIFICATION_TIME_PROP_NAME)
                .toString());
       
        props.put(POLICY_LAST_MODIFICATION_TIME_MILLIS_PROP_NAME, conf.getMonitoringProperty(POLICY_LAST_MODIFICATION_TIME_MILLIS_PROP_NAME)
                .toString());

        Runtime r = Runtime.getRuntime();
        props.put(USED_MEMORY_PROP_NAME, "" + r.totalMemory() + " bytes");
        props.put(MAX_MEMORY_PROP_NAME, "" + r.maxMemory() + " bytes");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.