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));