Package org.switchyard.security.context

Examples of org.switchyard.security.context.SecurityContextManager


    public InboundHandler(final RESTEasyBindingModel config, ServiceDomain domain) {
        super(domain);
        _config = config;
        _gatewayName = config.getName();
        _domain = domain;
        _securityContextManager = new SecurityContextManager(_domain);
    }
View Full Code Here


    public InboundHandler(final HttpBindingModel config, ServiceDomain domain) {
        super(domain);
        _config = config;
        _gatewayName = config.getName();
        _domain = domain;
        _securityContextManager = new SecurityContextManager(_domain);
        _operationSelector = OperationSelectorFactory
                .getOperationSelectorFactory(HttpBindingData.class)
                .newOperationSelector(config.getOperationSelector());
    }
View Full Code Here

    public InboundHandler(final SOAPBindingModel config, ServiceDomain domain) {
        super(domain);
        _config = config;
        _gatewayName = config.getName();
        _domain = domain;
        _securityContextManager = new SecurityContextManager(_domain);
    }
View Full Code Here

        BindingDataCreator<?> bindingCreator = getBindingDataCreator(camelExchange);
        CamelBindingData bindingData = bindingCreator.createBindingData(camelExchange.getIn());
        if (bindingData instanceof SecurityBindingData) {
            // returned binding is contains some security bindings, let's move them to security context
            ServiceDomain serviceDomain = ((SwitchYardCamelContext)camelExchange.getContext()).getServiceDomain();
            SecurityContextManager securityContextManager = new SecurityContextManager(serviceDomain);
            securityContextManager.addCredentials(switchyardExchange, ((SecurityBindingData)bindingData).extractCredentials());
        }
       
        /*
         * initialize the gateway name on the context. this was most likely not
         * mapped by the message composer/context mapper.
View Full Code Here

     * Constructs a SecurityHandler for the specified ServiceDomain and SecurityAction.
     * @param serviceDomain the ServiceDomain
     * @param securityAction the SecurityAction
     */
    public SecurityHandler(ServiceDomain serviceDomain, SecurityAction securityAction) {
        _securityContextManager = new SecurityContextManager(serviceDomain);
        _securityProvider = SecurityServices.getSecurityProvider();
        _securityAction = securityAction;
    }
View Full Code Here

     * Create a new ProviderHandler with the specified ServiceDomain.
     * @param serviceDomain the ServiceDomain
     */
    public ProviderHandler(ServiceDomain serviceDomain) {
        _securityProvider = SecurityServices.getSecurityProvider();
        _securityContextManager = new SecurityContextManager(serviceDomain);
    }
View Full Code Here

        _interface = serviceInterface;
        _handler = handler;
        _domain = domain;
        _targetServiceName = name;
        _metadata = metadata != null ? metadata : ServiceMetadataBuilder.create().build();
        _securityContextManager = new SecurityContextManager(_domain);
    }
View Full Code Here

TOP

Related Classes of org.switchyard.security.context.SecurityContextManager

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.