Package org.apache.storm.security.auth
Class DefaultHttpCredentialsPlugin
- java.lang.Object
-
- org.apache.storm.security.auth.DefaultHttpCredentialsPlugin
-
- All Implemented Interfaces:
IHttpCredentialsPlugin
public class DefaultHttpCredentialsPlugin extends Object implements IHttpCredentialsPlugin
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpCredentialsPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetUserName(jakarta.servlet.http.HttpServletRequest req)Gets the user name from the request.ReqContextpopulateContext(ReqContext context, jakarta.servlet.http.HttpServletRequest req)Populates a given context with credentials information from an HTTP request.voidprepare(Map<String,Object> topoConf)No-op.
-
-
-
Method Detail
-
prepare
public void prepare(Map<String,Object> topoConf)
No-op.- Specified by:
preparein interfaceIHttpCredentialsPlugin- Parameters:
topoConf- Storm configuration
-
getUserName
public String getUserName(jakarta.servlet.http.HttpServletRequest req)
Description copied from interface:IHttpCredentialsPluginGets the user name from the request.- Specified by:
getUserNamein interfaceIHttpCredentialsPlugin- Parameters:
req- the servlet request- Returns:
- the authenticated user, or null if none is authenticated.
-
populateContext
public ReqContext populateContext(ReqContext context, jakarta.servlet.http.HttpServletRequest req)
Description copied from interface:IHttpCredentialsPluginPopulates a given context with credentials information from an HTTP request.- Specified by:
populateContextin interfaceIHttpCredentialsPluginreq- the servlet request- Returns:
- the context
-
-