Examples of UserPrincipal


Examples of org.apache.openejb.core.security.jaas.UserPrincipal

            return null;
        }

        public void login(String user, String... roles) throws LoginException {
            Set<Principal> set = new HashSet<Principal>();
            set.add(new UserPrincipal(user));
            for (String role : roles) {
                set.add(new GroupPrincipal(role));
            }
            Subject subject = new Subject(true, set, Collections.EMPTY_SET, Collections.EMPTY_SET);
            UUID uuid = registerSubject(subject);
View Full Code Here

Examples of org.apache.openejb.core.security.jaas.UserPrincipal

        return socketURI;
    }

    @Override
    public Principal getUserPrincipal() {
        return new UserPrincipal("");
    }
View Full Code Here

Examples of org.apache.openejb.core.security.jaas.UserPrincipal

            return null;
        }

        public void login(String user, String... roles) throws LoginException {
            Set<Principal> set = new HashSet<Principal>();
            set.add(new UserPrincipal(user));
            for (String role : roles) {
                set.add(new GroupPrincipal(role));
            }
            Subject subject = new Subject(true, set, Collections.EMPTY_SET, Collections.EMPTY_SET);
            UUID uuid = registerSubject(subject);
View Full Code Here

Examples of org.apache.openejb.core.security.jaas.UserPrincipal

            return null;
        }

        public void login(String user, String... roles) throws LoginException {
            Set<Principal> set = new HashSet<Principal>();
            set.add(new UserPrincipal(user));
            for (String role : roles) {
                set.add(new GroupPrincipal(role));
            }
            Subject subject = new Subject(true, set, Collections.EMPTY_SET, Collections.EMPTY_SET);
            UUID uuid = registerSubject(subject);
View Full Code Here

Examples of org.apache.openejb.core.security.jaas.UserPrincipal

        return socketURI;
    }

    @Override
    public Principal getUserPrincipal() {
        return new UserPrincipal("");
    }
View Full Code Here

Examples of org.apache.openejb.core.security.jaas.UserPrincipal

        return true;
    }

    public boolean commit() throws LoginException {
        principals.add(new UserPrincipal(user));
        principals.add(new GroupPrincipal(user));

        subject.getPrincipals().addAll(principals);

        user = null;
View Full Code Here

Examples of org.apache.qpid.server.security.UserPrincipal

    public ServerSession(Connection connection, SessionDelegate delegate, Binary name, long expiry, ConnectionConfig connConfig)
    {
        super(connection, delegate, name, expiry);
        _connectionConfig = connConfig;       
        _transaction = new AutoCommitTransaction(this.getMessageStore());
        _principal = new UserPrincipal(connection.getAuthorizationID());
        _reference = new WeakReference<Session>(this);
        _id = getConfigStore().createId();
        getConfigStore().addConfiguredObject(this);
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.security.UserPrincipal

        }
        return true;
    }

    public boolean commit() throws LoginException {
        principals.add(new UserPrincipal(user));

        for (Enumeration enumeration = groups.keys(); enumeration.hasMoreElements();) {
            String name = (String) enumeration.nextElement();
            String[] userList = ((String) groups.getProperty(name) + "").split(",");
            for (int i = 0; i < userList.length; i++) {
View Full Code Here

Examples of org.apache.servicemix.kernel.jaas.modules.UserPrincipal

            if (!new String(tmpPassword).equals(infos[0])) {
                throw new FailedLoginException("Password does not match");
            }

            principals = new HashSet<Principal>();
            principals.add(new UserPrincipal(user));
            for (int i = 1; i < infos.length; i++) {
                principals.add(new RolePrincipal(infos[i]));
            }

            return true;
View Full Code Here

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
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.