void readBasicAuthentication() { String authorizationHeader = (String) _headers.get( "Authorization" ); if (authorizationHeader != null) { String userAndPassword = Base64.decode( authorizationHeader.substring( authorizationHeader.indexOf( ' ' ) + 1 ) ); int colonPos = userAndPassword.indexOf( ':' ); recordAuthenticationInfo( userAndPassword.substring( 0, colonPos ), toArray( userAndPassword.substring( colonPos+1 ) ) ); } }
void readBasicAuthentication() { String authorizationHeader = (String) _headers.get( "Authorization" ); if (authorizationHeader != null) { String userAndPassword = Base64.decode( authorizationHeader.substring( authorizationHeader.indexOf( ' ' ) + 1 ) ); int colonPos = userAndPassword.indexOf( ':' ); recordAuthenticationInfo( userAndPassword.substring( 0, colonPos ), toArray( userAndPassword.substring( colonPos+1 ) ) ); } }
void readBasicAuthentication() { String authorizationHeader = (String) _headers.get( "Authorization" ); if (authorizationHeader != null) { String userAndPassword = Base64.decode( authorizationHeader.substring( authorizationHeader.indexOf( ' ' ) + 1 ) ); int colonPos = userAndPassword.indexOf( ':' ); recordAuthenticationInfo( userAndPassword.substring( 0, colonPos ), toArray( userAndPassword.substring( colonPos+1 ) ) ); } }
private void handleLogin( HttpServletRequest req, HttpServletResponse resp ) throws IOException { final String username = req.getParameter( "j_username" ); final String roleList = req.getParameter( "j_password" ); getServletSession( req ).setUserInformation( username, ServletUnitHttpRequest.toArray( roleList ) ); resp.sendRedirect( getServletSession( req ).getOriginalURL().toExternalForm() ); }
private void handleLogin( HttpServletRequest req, HttpServletResponse resp ) throws IOException { final String username = req.getParameter( "j_username" ); final String roleList = req.getParameter( "j_password" ); getServletSession( req ).setUserInformation( username, ServletUnitHttpRequest.toArray( roleList ) ); resp.sendRedirect( getServletSession( req ).getOriginalURL().toExternalForm() ); }
private void handleLogin( HttpServletRequest req, HttpServletResponse resp ) throws IOException { final String username = req.getParameter( "j_username" ); final String roleList = req.getParameter( "j_password" ); getServletSession( req ).setUserInformation( username, ServletUnitHttpRequest.toArray( roleList ) ); resp.sendRedirect( getServletSession( req ).getOriginalURL().toExternalForm() ); }