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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.shiro.authc.AuthenticationInfo
    doMultiRealmAuthentication(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, setRealms

    Methods inherited from class org.apache.shiro.authc.AbstractAuthenticator

    authenticate, getAuthenticationListeners, notifyFailure, notifyLogout, notifySuccess, setAuthenticationListeners

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      doMultiRealmAuthentication in class org.apache.shiro.authc.pam.ModularRealmAuthenticator
      Parameters:
      realms - 领域
      token - 令牌
      Returns:
      AuthenticationInfo