public class RoleQueryHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
org.codelibs.core.crypto.CachedCipher |
cipher |
String |
cookieKey |
protected Map<String,String> |
cookieNameMap |
boolean |
encryptedCookieValue |
boolean |
encryptedHeaderValue |
boolean |
encryptedParameterValue |
String |
headerKey |
String |
parameterKey |
String |
roleSeparator |
String |
valueSeparator |
| Constructor and Description |
|---|
RoleQueryHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookieNameMapping(String cookieName,
String roleName) |
protected void |
addRoleFromCookieMapping(Set<String> roleNameList,
javax.servlet.http.Cookie cookie) |
Set<String> |
build(SearchRequestParams.SearchRequestType searchRequestType) |
protected void |
buildByCookieNameMapping(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet) |
protected String |
getAccessToken(javax.servlet.http.HttpServletRequest request) |
void |
init() |
protected void |
parseRoleSet(String value,
boolean encrypted,
Set<String> roleSet) |
protected void |
processAccessToken(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet) |
protected void |
processCookie(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet) |
protected void |
processHeader(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet) |
protected void |
processParameter(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet) |
public org.codelibs.core.crypto.CachedCipher cipher
public String valueSeparator
public String roleSeparator
public String parameterKey
public boolean encryptedParameterValue
public String headerKey
public boolean encryptedHeaderValue
public String cookieKey
public boolean encryptedCookieValue
@PostConstruct public void init()
public Set<String> build(SearchRequestParams.SearchRequestType searchRequestType)
protected void processAccessToken(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet)
protected String getAccessToken(javax.servlet.http.HttpServletRequest request)
protected void processParameter(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet)
protected void processHeader(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet)
protected void processCookie(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet)
protected void buildByCookieNameMapping(javax.servlet.http.HttpServletRequest request,
Set<String> roleSet)
protected void addRoleFromCookieMapping(Set<String> roleNameList, javax.servlet.http.Cookie cookie)
Copyright © 2009–2017 CodeLibs. All rights reserved.