public class TrustedApplicationUserBuilder extends Object implements ApplicationUserBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
TRUSTED_USER_EMAIL |
static String |
TRUSTED_USER_FIRST_NAME |
static String |
TRUSTED_USER_ID |
static String |
TRUSTED_USER_LAST_NAME |
static String |
TRUSTED_USER_ROLE |
| Constructor and Description |
|---|
TrustedApplicationUserBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ApplicationUser |
build(javax.servlet.http.HttpServletRequest request)
Builds an application user from the headers contained within the HTTP servlet request.
|
ApplicationUser |
buildNoRoles(javax.servlet.http.HttpServletRequest request)
Builds a user object without the roles from the headers contained within the HTTP servlet request.
|
protected ApplicationUser |
buildUser(javax.servlet.http.HttpServletRequest request,
boolean includeRoles)
Builds the application user.
|
public static final String TRUSTED_USER_ID
public static final String TRUSTED_USER_FIRST_NAME
public static final String TRUSTED_USER_LAST_NAME
public static final String TRUSTED_USER_EMAIL
public static final String TRUSTED_USER_ROLE
public ApplicationUser build(javax.servlet.http.HttpServletRequest request)
ApplicationUserBuilderbuild in interface ApplicationUserBuilderrequest - the HTTP servlet request.public ApplicationUser buildNoRoles(javax.servlet.http.HttpServletRequest request)
ApplicationUserBuilderbuildNoRoles in interface ApplicationUserBuilderrequest - the HTTP servlet request.protected ApplicationUser buildUser(javax.servlet.http.HttpServletRequest request, boolean includeRoles)
request - the HTTP servlet request.includeRoles - If true, the user's roles will be included. Otherwise, not.Copyright © 2021. All rights reserved.