Package org.apache.storm.security.auth
Class DefaultHttpCredentialsPlugin
java.lang.Object
org.apache.storm.security.auth.DefaultHttpCredentialsPlugin
- All Implemented Interfaces:
IHttpCredentialsPlugin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUserName
(jakarta.servlet.http.HttpServletRequest req) Gets the user name from the request.populateContext
(ReqContext context, jakarta.servlet.http.HttpServletRequest req) Populates a given context with credentials information from an HTTP request.void
No-op.
-
Constructor Details
-
DefaultHttpCredentialsPlugin
public DefaultHttpCredentialsPlugin()
-
-
Method Details
-
prepare
No-op.- Specified by:
prepare
in interfaceIHttpCredentialsPlugin
- Parameters:
topoConf
- Storm configuration
-
getUserName
Description copied from interface:IHttpCredentialsPlugin
Gets the user name from the request.- Specified by:
getUserName
in interfaceIHttpCredentialsPlugin
- Parameters:
req
- the servlet request- Returns:
- the authenticated user, or null if none is authenticated.
-
populateContext
Description copied from interface:IHttpCredentialsPlugin
Populates a given context with credentials information from an HTTP request.- Specified by:
populateContext
in interfaceIHttpCredentialsPlugin
req
- the servlet request- Returns:
- the context
-