Package org.apache.storm.security.auth
Interface IHttpCredentialsPlugin
- All Known Implementing Classes:
- DefaultHttpCredentialsPlugin
public interface IHttpCredentialsPlugin
Interface for handling credentials in an HttpServletRequest.
- 
Method SummaryModifier 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.voidInvoked once immediately after construction.
- 
Method Details- 
prepareInvoked once immediately after construction.- Parameters:
- topoConf- Storm configuration
 
- 
getUserNameGets the user name from the request.- Parameters:
- req- the servlet request
- Returns:
- the authenticated user, or null if none is authenticated.
 
- 
populateContextPopulates a given context with credentials information from an HTTP request.- Parameters:
- req- the servlet request
- Returns:
- the context
 
 
-