public class DefautModularRealm
extends org.apache.shiro.authc.pam.ModularRealmAuthenticator
| 构造器和说明 |
|---|
DefautModularRealm() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
assertRealmsConfigured()
判断realm是否为空
|
protected org.apache.shiro.authc.AuthenticationInfo |
doAuthenticate(org.apache.shiro.authc.AuthenticationToken authenticationToken)
判断登录类型执行操作
|
protected org.apache.shiro.authc.AuthenticationInfo |
doMultiRealmAuthentication(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执行操作
|
Map<String,Object> |
getDefinedRealms() |
void |
setDefinedRealms(Map<String,Object> definedRealms) |
getAuthenticationStrategy, getRealms, onLogout, setAuthenticationStrategy, setRealmsprotected org.apache.shiro.authc.AuthenticationInfo doMultiRealmAuthentication(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 IllegalStateException
assertRealmsConfigured 在类中 org.apache.shiro.authc.pam.ModularRealmAuthenticatorIllegalStateExceptionCopyright © 2018. All rights reserved.