Package opengrok.auth.plugin.decoders
Class UserPrincipalDecoder
java.lang.Object
opengrok.auth.plugin.decoders.UserPrincipalDecoder
- All Implemented Interfaces:
 IUserDecoder
Get authenticated user principal and use it to create User object.
 This works e.g. with HTTP Basic authentication headers as per RFC 7617.
- Author:
 - Vladimir Kotal
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfromRequest(jakarta.servlet.http.HttpServletRequest request) Creates the User from the http request. 
- 
Constructor Details
- 
UserPrincipalDecoder
public UserPrincipalDecoder() 
 - 
 - 
Method Details
- 
fromRequest
Description copied from interface:IUserDecoderCreates the User from the http request. Fills all parameters given in the request into the user.- Specified by:
 fromRequestin interfaceIUserDecoder- Parameters:
 request- the request- Returns:
 - the user object or null (if it could not be constructed)
 
 
 -