for(Principal p: subject.getPrincipals()) {
if(p instanceof WLSGroup) {
if(first) {
first=false;
} else {
groups.append(", ");
}
groups.append(p.getName());
} else if (p instanceof WLSUser) {
user = p.getName();
}
}
No comments:
Post a Comment