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 IHttpCredentialsPlugin
topoConf
- Storm configurationpublic String getUserName(javax.servlet.http.HttpServletRequest req)
Gets the user name from the request principal.
getUserName
in interface IHttpCredentialsPlugin
req
- 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 IHttpCredentialsPlugin
context
- the context to be populatedreq
- the servlet requestCopyright © 2022 The Apache Software Foundation. All rights reserved.