Home » geronimo-2.2-source-release » org.apache.geronimo.corba.security.config.ssl » [javadoc | source]

    1   /**
    2     * Licensed to the Apache Software Foundation (ASF) under one or more
    3     * contributor license agreements.  See the NOTICE file distributed with
    4     * this work for additional information regarding copyright ownership.
    5     * The ASF licenses this file to You under the Apache License, Version 2.0
    6     * (the "License"); you may not use this file except in compliance with
    7     * the License.  You may obtain a copy of the License at
    8     *
    9     *     http://www.apache.org/licenses/LICENSE-2.0
   10     *
   11     * Unless required by applicable law or agreed to in writing, software
   12     * distributed under the License is distributed on an "AS IS" BASIS,
   13     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14     * See the License for the specific language governing permissions and
   15     * limitations under the License.
   16     */
   17   package org.apache.geronimo.corba.security.config.ssl;
   18   
   19   import org.apache.geronimo.gbean.GBeanInfo;
   20   import org.apache.geronimo.gbean.GBeanInfoBuilder;
   21   import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
   22   
   23   import org.apache.geronimo.management.geronimo.KeystoreManager;
   24   
   25   /**
   26    * Implementation of an SSLConfigGBean
   27    *
   28    * @version $Rev: 452600 $ $Date: 2006-10-03 12:29:42 -0700 (Tue, 03 Oct 2006) $
   29    */
   30   public class SSLConfigGBean {
   31   
   32       public static final GBeanInfo GBEAN_INFO;
   33   
   34       static {
   35           GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(SSLConfigGBean.class, "SSL Configuration Adapater", SSLConfig.class, NameFactory.CORBA_SSL);
   36           infoBuilder.addAttribute("provider", String.class, true, true);
   37           infoBuilder.addAttribute("protocol", String.class, true, true);
   38           infoBuilder.addAttribute("algorithm", String.class, true, true);
   39           infoBuilder.addAttribute("keyStore", String.class, true, true);
   40           infoBuilder.addAttribute("keyAlias", String.class, true, true);
   41           infoBuilder.addAttribute("trustStore", String.class, true, true);
   42           infoBuilder.addReference("KeystoreManager", KeystoreManager.class, GBeanInfoBuilder.DEFAULT_J2EE_TYPE);
   43           infoBuilder.setConstructor(new String[]{"KeystoreManager"});
   44           GBEAN_INFO = infoBuilder.getBeanInfo();
   45       }
   46   
   47       public static GBeanInfo getGBeanInfo() {
   48           return GBEAN_INFO;
   49       }
   50   }
   51   

Home » geronimo-2.2-source-release » org.apache.geronimo.corba.security.config.ssl » [javadoc | source]