Is it possible to have such an authenticate method:

public int authenticate(
Context context, String username, String password, String realm, 
HttpServletRequest request)
throws Exception {
    if (validUser(username, password)) {
        context.setSpecialGroup(G4);
    }
    else {
        return BAD_CREDENTIALS;
    }
}

And if it is possible, then do I need such an getSpecialGroups method?

public int[] getSpecialGroups(Context context, HttpServletRequest request) {
    for (Group group: context.getSpecialGroups()) {
        . . .
    }
    return groups;
}


>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to