use of org.apache.openejb.core.security.jaas.UserPrincipal in project tomee by apache.
the class TestLoginModule method commit.
public boolean commit() throws LoginException {
principals.add(new UserPrincipal(user));
principals.add(new GroupPrincipal(user));
subject.getPrincipals().addAll(principals);
user = null;
return true;
}
Aggregations