/** * Return <code>true</code> if the specified Principal has the specified * security role, within the context of this Realm; otherwise return * <code>false</code>. This method can be overridden by Realm * implementations. The default implementation is to forward to * hasRole(Principal principal, String role). * * @param request Request we are processing * @param response Response we are creating * @param principal Principal for whom the role is to be checked * @param role Security role to be checked */ public boolean hasRole(HttpRequest request, HttpResponse response, Principal principal, String role) { return hasRole(principal, role); } //END SJSAS 6232464
if (hasRole(principal, roles[j])) { if (log.isLoggable(Level.FINE)) log.log(Level.FINE, "Role found: " + roles[j]);
return super.hasRole(principal, role);
if (hasRole(principal, roles[j])) status = true; if( log.isDebugEnabled() )
return super.hasRole(null, principal, role);
return super.hasRole(null, principal, role);
return super.hasRole(null, principal, role);
return super.hasRole(null, principal, role);
return super.hasRole(null, principal, role);
return super.hasRole(null, principal, role);
return super.hasRole(null, principal, role);
return super.hasRole(null, principal, role);
boolean baseDecision = ignoreBaseDecision ? true : super.hasRole(principal, role);
} else { for (int j = 0; j < roles.length; j++) { if (hasRole(null, principal, roles[j])) { status = true; if( log.isDebugEnabled() )
} else { for (int j = 0; j < roles.length; j++) { if (hasRole(null, principal, roles[j])) { status = true; if( log.isDebugEnabled() )
} else { for (int j = 0; j < roles.length; j++) { if (hasRole(null, principal, roles[j])) { status = true; if( log.isDebugEnabled() )
} else { for (int j = 0; j < roles.length; j++) { if (hasRole(principal, roles[j])) { status = true; if( CatalinaLogger.REALM_LOGGER.isDebugEnabled() )
} else { for (int j = 0; j < roles.length; j++) { if (hasRole(null, principal, roles[j])) { status = true; if( log.isDebugEnabled() )
} else { for (int j = 0; j < roles.length; j++) { if (hasRole(null, principal, roles[j])) { status = true; if( log.isDebugEnabled() )
} else { for (int j = 0; j < roles.length; j++) { if (hasRole(null, principal, roles[j])) { status = true; if( log.isDebugEnabled() )