public static boolean isRefresh(HttpServletRequest request) {
return TRUE.equals(request.getAttribute(IS_REFRESH));
}
public static void notifyContainerAboutLogin(Subject clientSubject, CallbackHandler handler, Principal callerPrincipal, List<String> roles) {
try {
<BUG>handler.handle(new Callback[] { new CallerPrincipalCallback(clientSubject, callerPrincipal) });
if (!isEmpty(roles)) {
handler.handle(new Callback[] { new GroupPrincipalCallback(clientSubject, roles.toArray(new String[roles.size()])) });
}</BUG>
} catch (IOException | UnsupportedCallbackException e) {

public static boolean isRefresh(HttpServletRequest request) {
return TRUE.equals(request.getAttribute(IS_REFRESH));
}
public static void notifyContainerAboutLogin(Subject clientSubject, CallbackHandler handler, Principal callerPrincipal, List<String> roles) {
try {
if (isEmpty(roles)) {
handler.handle(new Callback[] {
new CallerPrincipalCallback(clientSubject, callerPrincipal) });
} else {
handler.handle(new Callback[] {
new CallerPrincipalCallback(clientSubject, callerPrincipal),
new GroupPrincipalCallback(clientSubject, roles.toArray(new String[roles.size()])) });
}
} catch (IOException | UnsupportedCallbackException e) {
