Skip to content

Instantly share code, notes, and snippets.

View ErShakirAnsari's full-sized avatar
🏠
Working from home

Shakir Ansari ErShakirAnsari

🏠
Working from home
View GitHub Profile
@ErShakirAnsari
ErShakirAnsari / BasicAuthenticationFilter.java
Created December 8, 2018 06:39 — forked from neolitec/BasicAuthenticationFilter.java
HTTP Basic authentication Java filter
package com.neolitec.examples;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;