public void setUnauthenticatedSecurityContext() { if (_logger.isLoggable(Level.FINE)) { _logger.log(Level.FINE, "SecurityContext: setUnauthenticatedSecurityContext method called"); } setUnauthenticatedContext(); }
public void setUnauthenticatedSecurityContext() { if (_logger.isLoggable(Level.FINE)) { _logger.log(Level.FINE, "SecurityContext: setUnauthenticatedSecurityContext method called"); } setUnauthenticatedContext(); }
/** * A special case login for anonymous credentials (no login info). * */ private static void doAnonLogin() throws LoginException { // instance of anononymous credential login with guest SecurityContext.setUnauthenticatedContext(); if(_logger.isLoggable(Level.FINE)){ _logger.log(Level.FINE,"Set anonymous security context."); } }
/** * A special case login for anonymous credentials (no login info). * */ private static void doAnonLogin() throws LoginException { // instance of anononymous credential login with guest SecurityContext.setUnauthenticatedContext(); if(_logger.isLoggable(Level.FINE)){ _logger.log(Level.FINE,"Set anonymous security context."); } }
HttpServletRequest hsr = (HttpServletRequest) request.getRequest(); if (hsr.getUserPrincipal() == null) { SecurityContext.setUnauthenticatedContext();
com.sun.enterprise.security.SecurityContext.setUnauthenticatedContext();
}finally{ com.sun.enterprise.security.SecurityContext.setUnauthenticatedContext();