Examples of TSSConfig


Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

        ConfigAdapter configAdapter = new org.apache.geronimo.yoko.ORBConfigAdapter();
        CORBABean corbaBean = new CORBABean(testName, configAdapter, "localhost", 8050, classLoader, null, null, null);
        XmlObject xmlObject = getXmlObject(TEST_XML4);
        TSSConfigEditor editor = new TSSConfigEditor();
        Object o = editor.getValue(xmlObject, null, classLoader);
        TSSConfig tss = (TSSConfig) o;

        corbaBean.setTssConfig(tss);

        try {
            corbaBean.doStart();
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

        ORB orb = createORB(server.getURI(), server, translateToArgs(server), translateToProps(server));

        // check the tss config for a transport mech definition.  If we have one, then
        // the port information will be passed in that config, and the port in the IIOP profile
        // needs to be zero.
        TSSConfig config = server.getTssConfig();
        TSSTransportMechConfig transportMech = config.getTransport_mech();
        if (transportMech != null) {
            if (transportMech instanceof TSSSSLTransportConfig) {
                Any any = orb.create_any();
                any.insert_boolean(true);
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

        result.put("yoko.orb.id", server.getURI());

        // check the tss config for a transport mech definition.  If we have one, then
        // the port information will be passed in that config, and the port in the IIOP profile
        // needs to be zero.
        TSSConfig config = server.getTssConfig();
        TSSTransportMechConfig transportMech = config.getTransport_mech();
        if (transportMech != null) {
            if (transportMech instanceof TSSSSLTransportConfig) {
                result.put("yoko.orb.policy.zero_port", "true");
            }
        }
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

        ConfigAdapter configAdapter = new org.apache.geronimo.yoko.ORBConfigAdapter();
        CORBABean corbaBean = new CORBABean(testName, configAdapter, "localhost", 8050, classLoader, null, null, null);
        XmlObject xmlObject = getXmlObject(TEST_XML4);
        TSSConfigEditor editor = new TSSConfigEditor();
        Object o = editor.getValue(xmlObject, null, classLoader);
        TSSConfig tss = (TSSConfig) o;

        corbaBean.setTssConfig(tss);

        try {
            corbaBean.doStart();
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

        ORB orb = createORB(server.getURI(), server, translateToArgs(server), translateToProps(server));

        // check the tss config for a transport mech definition.  If we have one, then
        // the port information will be passed in that config, and the port in the IIOP profile
        // needs to be zero.
        TSSConfig config = server.getTssConfig();
        TSSTransportMechConfig transportMech = config.getTransport_mech();
        if (transportMech != null) {
            if (transportMech instanceof TSSSSLTransportConfig) {
                Any any = orb.create_any();
                any.insert_boolean(true);
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

     * @exception ConfigException if configuration cannot be interpreted
     */
    private String[] translateToArgs(CORBABean server) throws ConfigException {
        ArrayList<String> list = new ArrayList<String>();

        TSSConfig config = server.getTssConfig();

        // if the TSSConfig includes principal information, we need to add argument values
        // for this information.
        DefaultPrincipal principal = config.getDefaultPrincipal();
        if (principal != null) {
            if (principal instanceof DefaultRealmPrincipal) {
                DefaultRealmPrincipal realmPrincipal = (DefaultRealmPrincipal) principal;
                list.add("default-realm-principal::" + realmPrincipal.getRealm() + ":" + realmPrincipal.getDomain() + ":"
                         + realmPrincipal.getPrincipal().getClassName() + ":" + realmPrincipal.getPrincipal().getPrincipalName());
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

        result.put("yoko.orb.id", server.getURI());

        // check the tss config for a transport mech definition.  If we have one, then
        // the port information will be passed in that config, and the port in the IIOP profile
        // needs to be zero.
        TSSConfig config = server.getTssConfig();
        TSSTransportMechConfig transportMech = config.getTransport_mech();
        if (transportMech != null) {
            if (transportMech instanceof TSSSSLTransportConfig) {
                result.put("yoko.orb.policy.zero_port", "true");
            }
        }
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

        ClassLoader savedCL = Thread.currentThread().getContextClassLoader();
        try {
            ServerPolicy serverPolicy = (ServerPolicy) ri.get_server_policy(ServerPolicyFactory.POLICY_TYPE);
            if (serverPolicy == null) return;

            TSSConfig tssPolicy = serverPolicy.getConfig();
            if (tssPolicy == null) return;

            if (serverPolicy.getClassloader() != null) Thread.currentThread().setContextClassLoader(serverPolicy.getClassloader());

            if (log.isDebugEnabled()) log.debug("Found server policy");

            ServiceContext serviceContext = ri.get_request_service_context(SecurityAttributeService.value);
            if (serviceContext == null) return;

            if (log.isDebugEnabled()) log.debug("Found service context");

            Any any = Util.getCodec().decode_value(serviceContext.context_data, SASContextBodyHelper.type());
            SASContextBody contextBody = SASContextBodyHelper.extract(any);

            short msgType = contextBody.discriminator();
            switch (msgType) {
                case MTEstablishContext.value:
                    if (log.isDebugEnabled()) log.debug("   EstablishContext");

                    contextId = contextBody.establish_msg().client_context_id;

                    identity = tssPolicy.check(SSLSessionManager.getSSLSession(ri.request_id()), contextBody.establish_msg());

                    if (identity != null) {
                        ContextManager.registerSubject(identity);
                    } else {
                        identity = defaultSubject;
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

        if (config == null) {
            throw new RuntimeException("Unable to resolve ORB configuration " + configName);
        }
        // get the configuration from the hosting bean and decode what needs to be implemented.
        sslConfig = config.getSslConfig();
        TSSConfig tssConfig = config.getTssConfig();

        TSSTransportMechConfig transportMech = tssConfig.getTransport_mech();
        // if we have a transport mech defined, this is the configuration for any listeners we end up
        // creating.
        if (transportMech != null) {
            if (transportMech instanceof TSSSSLTransportConfig) {
                TSSSSLTransportConfig transportConfig = (TSSSSLTransportConfig) transportMech;
View Full Code Here

Examples of org.apache.geronimo.corba.security.config.tss.TSSConfig

        this.cssConfig = config;
    }

    public TSSConfig getTssConfig() {
        // just return a default no security one.
        return new TSSConfig();
    }
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.