public class DefaultHttpCredentialsPlugin extends Object implements IHttpCredentialsPlugin
| Constructor and Description |
|---|
DefaultHttpCredentialsPlugin() |
| Modifier and Type | Method and Description |
|---|---|
String |
getUserName(javax.servlet.http.HttpServletRequest req)
Gets the user name from the request principal.
|
ReqContext |
populateContext(ReqContext context,
javax.servlet.http.HttpServletRequest req)
Populates a given context with a new Subject derived from the credentials in a servlet request.
|
void |
prepare(Map<String,Object> topoConf)
No-op.
|
public void prepare(Map<String,Object> topoConf)
No-op.
prepare in interface IHttpCredentialsPlugintopoConf - Storm configurationpublic String getUserName(javax.servlet.http.HttpServletRequest req)
Gets the user name from the request principal.
getUserName in interface IHttpCredentialsPluginreq - the servlet requestpublic ReqContext populateContext(ReqContext context, javax.servlet.http.HttpServletRequest req)
Populates a given context with a new Subject derived from the credentials in a servlet request.
populateContext in interface IHttpCredentialsPlugincontext - the context to be populatedreq - the servlet requestCopyright © 2021 The Apache Software Foundation. All rights reserved.