public abstract class HiidoauthServletMethodProcessor
extends com.github.obase.webc.support.security.WsidServletMethodProcessor
| 构造器和说明 |
|---|
HiidoauthServletMethodProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
com.github.obase.security.Principal |
activatePrincipal(String data) |
protected abstract String |
getAgentId() |
protected abstract byte[] |
getAgentPwd() |
protected abstract String |
getHiidoLoginUrl() |
protected abstract String |
getHomepage() |
protected abstract redis.clients.jedis.JedisPool |
getJedisPool() |
List<com.github.obase.security.Principal> |
getMyAgentStaffInfo() |
protected abstract String |
getPublicKey() |
protected abstract String |
getUdbApi() |
protected String |
persistPrincipal(com.github.obase.security.Principal principal) |
boolean |
postHiidoLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String token) |
protected void |
redirectLoginPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setup(com.github.obase.webc.config.WebcConfig.FilterInitParam params,
Map<String,com.github.obase.webc.ServletMethodObject> rules) |
protected com.github.obase.webc.Wsid |
tryOssLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
updateMyStaffAgentInfo(boolean valid,
String... users) |
void |
updateMyStaffAgentInfo(Map<String,Boolean> users) |
com.github.obase.security.Principal |
validateAndExtendPrincipal(com.github.obase.webc.Wsid wsid) |
protected com.github.obase.security.Principal |
validatePermission(com.github.obase.security.Principal principal,
org.springframework.http.HttpMethod method,
com.github.obase.webc.ServletMethodObject object) |
protected com.github.obase.security.Principal |
validatePrincipal(UserPrincipal staffInfoByToken) |
protected abstract String getUdbApi()
protected abstract String getAgentId()
protected abstract byte[] getAgentPwd()
protected abstract String getPublicKey()
protected abstract String getHomepage()
protected abstract String getHiidoLoginUrl()
protected abstract redis.clients.jedis.JedisPool getJedisPool()
public void setup(com.github.obase.webc.config.WebcConfig.FilterInitParam params,
Map<String,com.github.obase.webc.ServletMethodObject> rules)
throws javax.servlet.ServletException
setup 在接口中 com.github.obase.webc.ServletMethodProcessorsetup 在类中 com.github.obase.webc.support.security.WsidServletMethodProcessorjavax.servlet.ServletExceptionpublic com.github.obase.security.Principal validateAndExtendPrincipal(com.github.obase.webc.Wsid wsid)
validateAndExtendPrincipal 在类中 com.github.obase.webc.support.security.WsidServletMethodProcessorpublic boolean postHiidoLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String token)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void redirectLoginPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
redirectLoginPage 在类中 com.github.obase.webc.support.security.WsidServletMethodProcessorjavax.servlet.ServletExceptionIOExceptionprotected com.github.obase.webc.Wsid tryOssLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
tryOssLogin 在类中 com.github.obase.webc.support.security.WsidServletMethodProcessorjavax.servlet.ServletExceptionIOExceptionprotected String persistPrincipal(com.github.obase.security.Principal principal)
public com.github.obase.security.Principal activatePrincipal(String data)
protected com.github.obase.security.Principal validatePrincipal(UserPrincipal staffInfoByToken)
protected com.github.obase.security.Principal validatePermission(com.github.obase.security.Principal principal,
org.springframework.http.HttpMethod method,
com.github.obase.webc.ServletMethodObject object)
validatePermission 在类中 com.github.obase.webc.support.security.WsidServletMethodProcessorpublic final List<com.github.obase.security.Principal> getMyAgentStaffInfo()
public void updateMyStaffAgentInfo(boolean valid,
String... users)
Copyright © 2017. All rights reserved.