public class DefautModular
extends org.apache.shiro.authc.pam.ModularRealmAuthenticator
| 构造器和说明 |
|---|
DefautModular() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
assertRealmsConfigured()
判断realm是否为空
|
protected org.apache.shiro.authc.AuthenticationInfo |
doAuthenticate(org.apache.shiro.authc.AuthenticationToken authenticationToken)
判断登录类型执行操作
|
protected org.apache.shiro.authc.AuthenticationInfo |
doMultiRealmAuthentication(java.util.Collection<org.apache.shiro.realm.Realm> realms,
org.apache.shiro.authc.AuthenticationToken token)
多个realm实现
|
protected org.apache.shiro.authc.AuthenticationInfo |
doSingleRealmAuthentication(org.apache.shiro.realm.Realm realm,
org.apache.shiro.authc.AuthenticationToken token)
调用单个realm执行操作
|
java.util.Map<java.lang.String,java.lang.Object> |
getDefinedRealms() |
void |
setDefinedRealms(java.util.Map<java.lang.String,java.lang.Object> definedRealms) |
getAuthenticationStrategy, getRealms, onLogout, setAuthenticationStrategy, setRealmsprotected org.apache.shiro.authc.AuthenticationInfo doMultiRealmAuthentication(java.util.Collection<org.apache.shiro.realm.Realm> realms,
org.apache.shiro.authc.AuthenticationToken token)
doMultiRealmAuthentication 在类中 org.apache.shiro.authc.pam.ModularRealmAuthenticatorprotected org.apache.shiro.authc.AuthenticationInfo doSingleRealmAuthentication(org.apache.shiro.realm.Realm realm,
org.apache.shiro.authc.AuthenticationToken token)
doSingleRealmAuthentication 在类中 org.apache.shiro.authc.pam.ModularRealmAuthenticatorprotected org.apache.shiro.authc.AuthenticationInfo doAuthenticate(org.apache.shiro.authc.AuthenticationToken authenticationToken)
throws org.apache.shiro.authc.AuthenticationException
doAuthenticate 在类中 org.apache.shiro.authc.pam.ModularRealmAuthenticatororg.apache.shiro.authc.AuthenticationExceptionprotected void assertRealmsConfigured()
throws java.lang.IllegalStateException
assertRealmsConfigured 在类中 org.apache.shiro.authc.pam.ModularRealmAuthenticatorjava.lang.IllegalStateExceptionpublic java.util.Map<java.lang.String,java.lang.Object> getDefinedRealms()
public void setDefinedRealms(java.util.Map<java.lang.String,java.lang.Object> definedRealms)