Package net.mingsoft.basic.realm
Class CustomModularRealmAuthenticator
java.lang.Object
org.apache.shiro.authc.AbstractAuthenticator
org.apache.shiro.authc.pam.ModularRealmAuthenticator
net.mingsoft.basic.realm.CustomModularRealmAuthenticator
- All Implemented Interfaces:
org.apache.shiro.authc.Authenticator,org.apache.shiro.authc.LogoutAware
public class CustomModularRealmAuthenticator
extends org.apache.shiro.authc.pam.ModularRealmAuthenticator
自定义多realm认证
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.shiro.authc.AuthenticationInfodoMultiRealmAuthentication(Collection<org.apache.shiro.realm.Realm> realms, org.apache.shiro.authc.AuthenticationToken token) 重写多realm认证Methods inherited from class org.apache.shiro.authc.pam.ModularRealmAuthenticator
assertRealmsConfigured, doAuthenticate, doSingleRealmAuthentication, getAuthenticationStrategy, getRealms, onLogout, setAuthenticationStrategy, setRealmsMethods inherited from class org.apache.shiro.authc.AbstractAuthenticator
authenticate, getAuthenticationListeners, notifyFailure, notifyLogout, notifySuccess, setAuthenticationListeners
-
Constructor Details
-
CustomModularRealmAuthenticator
public CustomModularRealmAuthenticator()
-
-
Method Details
-
doMultiRealmAuthentication
protected org.apache.shiro.authc.AuthenticationInfo doMultiRealmAuthentication(Collection<org.apache.shiro.realm.Realm> realms, org.apache.shiro.authc.AuthenticationToken token) 重写多realm认证- Overrides:
doMultiRealmAuthenticationin classorg.apache.shiro.authc.pam.ModularRealmAuthenticator- Parameters:
realms- 领域token- 令牌- Returns:
AuthenticationInfo
-