
public class Authenticator extends Object implements org.osgi.service.http.HttpContext
| Constructor and Description |
|---|
Authenticator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMimeType(String name) |
URL |
getResource(String name) |
String[] |
getUserAndPass(String auth)
Parses the Authorization header for BASIC authentication
|
boolean |
handleSecurity(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
public boolean handleSecurity(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
handleSecurity in interface org.osgi.service.http.HttpContextIOExceptionpublic URL getResource(String name)
getResource in interface org.osgi.service.http.HttpContextpublic String getMimeType(String name)
getMimeType in interface org.osgi.service.http.HttpContextpublic String[] getUserAndPass(String auth)
auth - The BASE64 encoded user:pass values. If null or empty, returns
falseCopyright © 2018 universAAL Consortium. All rights reserved.