Package org.switchyard.security.context

Examples of org.switchyard.security.context.SecurityContext


                    .addLabels(BehaviorLabel.TRANSIENT.label());

            SOAPBindingData soapBindingData = new SOAPBindingData(soapMessage, wsContext);

            // add any thread-local and/or binding-extracted credentials
            SecurityContext securityContext = _securityContextManager.getContext(exchange);
            securityContext.getCredentials().addAll(credentials);
            securityContext.getCredentials().addAll(soapBindingData.extractCredentials());
            _securityContextManager.setContext(exchange, securityContext);

            Message message;
            try {
                message = _messageComposer.compose(soapBindingData, exchange);
View Full Code Here


        }
    }

    private void process(Exchange exchange, ServiceSecurity serviceSecurity) throws HandlerException {
        processCount().incrementAndGet();
        SecurityContext securityContext = _securityContextManager.getContext(exchange);
        if (isRequired(exchange, CONFIDENTIALITY) && !isProvided(exchange, CONFIDENTIALITY)) {
            if (isConfidentialityProvided(securityContext)) {
                provide(exchange, CONFIDENTIALITY);
            }
        }
View Full Code Here

    @Override
    public void handleMessage(final Exchange exchange) throws HandlerException {
        final Service service = exchange.getProvider();
        ServiceSecurity serviceSecurity = service.getServiceMetadata().getSecurity();
        if (serviceSecurity != null) {
            SecurityContext securityContext = _securityContextManager.getContext(exchange);
            PrivilegedExceptionAction<Void> action = new PrivilegedExceptionAction<Void>() {
                public Void run() throws Exception {
                    service.getProviderHandler().handleMessage(exchange);
                    return null;
                }
View Full Code Here

TOP

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

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.