Examples of MQUser


Examples of com.sun.messaging.jmq.auth.jaas.MQUser

                subject = (Subject) java.security.AccessController.doPrivileged(
                    new PrivilegedAction<Object>() {
                        public Object run(){
                            Subject tempSubject = new Subject();
                            tempSubject.getPrincipals().add(
                                    new MQUser(tempUserName));
                            tempSubject.getPrincipals().add(
                                    new MQAdminGroup(ADMINKEYNAME));
                            return tempSubject;
                        }
                    }
                );
/*
//                subject = new Subject();
//                subject.getPrincipals().add(new MQUser(username));
//                subject.getPrincipals().add(new MQAdminGroup(ADMINKEYNAME));
*/
                acc = new JMQAccessControlContext(new MQUser(username), subject, authProps);
                return null;
            }
      FailedLoginException ex = new FailedLoginException(
      Globals.getBrokerResources().getKString(
                        BrokerResources.X_FORBIDDEN, username));
View Full Code Here

Examples of com.sun.messaging.jmq.auth.jaas.MQUser

                    BrokerResources.X_FORBIDDEN, username));
      ex.setUser(username);
      throw ex;
        }

        acc = new JMQAccessControlContext(new MQUser(username), subject, authProps);
        return null;

        } catch (ClassNotFoundException e) {
            throw new LoginException(Globals.getBrokerResources().getString(
               BrokerResources.X_INTERNAL_EXCEPTION,"ClassNotFoundException: "+e.getMessage()));
View Full Code Here

Examples of com.sun.messaging.jmq.auth.jaas.MQUser

                    BrokerResources.X_FORBIDDEN, username));
      ex.setUser(username);
      throw ex;
        }

        acc = new JMQAccessControlContext(new MQUser(username), subject, authProps);
        return null;

        } catch (ClassNotFoundException e) {
            throw new LoginException(Globals.getBrokerResources().getString(
               BrokerResources.X_INTERNAL_EXCEPTION,"ClassNotFoundException: "+e.getMessage()));
View Full Code Here

Examples of com.sun.messaging.jmq.auth.jaas.MQUser

            try {
                ctx = new InitialDirContext(env);
                ctx.close();

                Subject subject = new Subject();
                subject.getPrincipals().add(new MQUser(user));
                try {
                    findGroups(dnName, subject);
                } catch (NamingException e) {
                    String emsg = Globals.getBrokerResources().getKString(
                    BrokerResources.X_LDAP_GROUP_SEARCH_ERROR, user+" ["+dnName+"]");
View Full Code Here

Examples of com.sun.messaging.jmq.auth.jaas.MQUser

            //final Subject tempSubject = subject;
            subject = (Subject) java.security.AccessController.doPrivileged(
                new PrivilegedAction<Object>() {
                    public Object run(){
                        Subject tempSubject = new Subject();
                        tempSubject.getPrincipals().add(new MQUser(tempUser));
                        tempSubject.getPrincipals().add(new MQGroup(rolestr));
                        if (rolestr.equals(ADMINGROUP)) {
                            tempSubject.getPrincipals().add(
                                    new MQAdminGroup(ADMINGROUP));
                        }
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.