Package org.apache.servicemix.nmr.api.security

Examples of org.apache.servicemix.nmr.api.security.UserPrincipal


        destination.activate();
              
        assertNotNull(destination);
       
        Subject subject = new Subject();
        subject.getPrincipals().add(new UserPrincipal("ffang"));

        Channel channel = nmr.createChannel();
        org.apache.servicemix.nmr.api.Exchange exchange = channel.createExchange(Pattern.InOut);
        exchange.setTarget(
                nmr.getEndpointRegistry().lookup(ServiceHelper.createMap(Endpoint.NAME, "dumy")));
View Full Code Here


        destination.activate();
              
        assertNotNull(destination);
       
        Subject subject = new Subject();
        subject.getPrincipals().add(new UserPrincipal("ffang"));

        Channel channel = nmr.createChannel();
        org.apache.servicemix.nmr.api.Exchange exchange = channel.createExchange(Pattern.InOut);
        exchange.setTarget(
                nmr.getEndpointRegistry().lookup(ServiceHelper.createMap(Endpoint.NAME, "dumy")));
View Full Code Here

        destination.activate();
              
        assertNotNull(destination);
       
        Subject subject = new Subject();
        subject.getPrincipals().add(new UserPrincipal("ffang"));

        Channel channel = nmr.createChannel();
        org.apache.servicemix.nmr.api.Exchange exchange = channel.createExchange(Pattern.InOut);
        exchange.setTarget(
                nmr.getEndpointRegistry().lookup(ServiceHelper.createMap(Endpoint.NAME, "dumy")));
View Full Code Here

        return new RouteBuilder() {

            @Override
            public void configure() throws Exception {
              Subject subject = new Subject();
                subject.getPrincipals().add(new UserPrincipal("ffang"));
                from("direct:inonly").setHeader(Exchange.AUTHENTICATION).constant(subject).
                  to("nmr:helloworld");
                  
                from("nmr:helloworld?runAsSubject=true").process(new SubjectProcessor());
                   
View Full Code Here

TOP

Related Classes of org.apache.servicemix.nmr.api.security.UserPrincipal

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.