Examples of JACCProviderConfig


Examples of com.sun.appserv.management.config.JACCProviderConfig

    }
   
      public static JACCProviderConfig
  ensureDefaultInstance( final SecurityServiceConfig ss )
  {
      JACCProviderConfig result = ss.getJACCProviderConfigMap().get( getDefaultInstanceName() );
     
      if ( result == null )
      {
          result  = createInstance( ss, getDefaultInstanceName(), PROVIDER, PROVIDER_FACTORY );
      }
View Full Code Here

Examples of com.sun.appserv.management.config.JACCProviderConfig

            if(!edit){
                getDefaultJaccProviderAttributes(handlerCtx);
                return;
            }
            Map<String,JACCProviderConfig>jaccProviders = config.getSecurityServiceConfig().getJACCProviderConfigMap();
            JACCProviderConfig jacc = (JACCProviderConfig)jaccProviders.get((String)handlerCtx.getInputValue("Name"));
            Map<String, String> props = jacc.getProperties();
            String jconfig = jacc.getPolicyConfigurationFactoryProvider();
            String policy = jacc.getPolicyProvider();
            handlerCtx.setOutputValue("PolicyConfig", jconfig);
            handlerCtx.setOutputValue("PolicyProvider", policy);
            handlerCtx.setOutputValue("Properties", props);
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
View Full Code Here

Examples of com.sun.appserv.management.config.JACCProviderConfig

                config.getSecurityServiceConfig().createJACCProviderConfig(
                        (String)handlerCtx.getInputValue("Name"), ((String)handlerCtx.getInputValue("PolicyProvider")), ((String)handlerCtx.getInputValue("PolicyConfig")), optionalMap);
                return;
            }
            Map<String,JACCProviderConfig>jaccProviders = config.getSecurityServiceConfig().getJACCProviderConfigMap();
            JACCProviderConfig jacc = (JACCProviderConfig)jaccProviders.get((String)handlerCtx.getInputValue("Name"));
            ArrayList removeProps = (ArrayList)handlerCtx.getInputValue("RemoveProps");
            Map addProps = (Map)handlerCtx.getInputValue("AddProps");
            String[] remove = (String[])removeProps.toArray(new String[ removeProps.size()]);
            for(int i=0; i<remove.length; i++){
                jacc.removeProperty(remove[i]);
            }
            if(addProps != null ){
                Iterator additer = addProps.keySet().iterator();
                while(additer.hasNext()){
                    Object key = additer.next();
                    String addvalue = (String)addProps.get(key);
                    jacc.setPropertyValue((String)key, addvalue);
                   
                }
            }
            jacc.setPolicyConfigurationFactoryProvider(((String)handlerCtx.getInputValue("PolicyConfig")));
            jacc.setPolicyProvider(((String)handlerCtx.getInputValue("PolicyProvider")));
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
       
    }  
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.