类 AnySuccessfulStrategy
- java.lang.Object
-
- org.apache.shiro.authc.pam.AbstractAuthenticationStrategy
-
- cn.wizzer.app.web.commons.shiro.pam.AnySuccessfulStrategy
-
- 所有已实现的接口:
org.apache.shiro.authc.pam.AuthenticationStrategy
@IocBean(name="authenticationStrategy") public class AnySuccessfulStrategy extends org.apache.shiro.authc.pam.AbstractAuthenticationStrategy
-
-
构造器概要
构造器 构造器 说明 AnySuccessfulStrategy()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.apache.shiro.authc.AuthenticationInfoafterAttempt(org.apache.shiro.realm.Realm realm, org.apache.shiro.authc.AuthenticationToken token, org.apache.shiro.authc.AuthenticationInfo singleRealmInfo, org.apache.shiro.authc.AuthenticationInfo aggregateInfo, Throwable t)org.apache.shiro.authc.AuthenticationInfobeforeAllAttempts(Collection<? extends org.apache.shiro.realm.Realm> realms, org.apache.shiro.authc.AuthenticationToken token)Returnsnullimmediately, relying on this class'smergeimplementation to return only the firstinfoobject it encounters, ignoring all subsequent ones.protected org.apache.shiro.authc.AuthenticationInfomerge(org.apache.shiro.authc.AuthenticationInfo info, org.apache.shiro.authc.AuthenticationInfo aggregate)Returns the specifiedaggregateinstance if is non null and valid (that is, has principals and they are not empty) immediately, or, if it is null or not valid, theinfoargument is returned instead.
-
-
-
方法详细资料
-
beforeAllAttempts
public org.apache.shiro.authc.AuthenticationInfo beforeAllAttempts(Collection<? extends org.apache.shiro.realm.Realm> realms, org.apache.shiro.authc.AuthenticationToken token) throws org.apache.shiro.authc.AuthenticationException
Returnsnullimmediately, relying on this class'smergeimplementation to return only the firstinfoobject it encounters, ignoring all subsequent ones.- 指定者:
beforeAllAttempts在接口中org.apache.shiro.authc.pam.AuthenticationStrategy- 覆盖:
beforeAllAttempts在类中org.apache.shiro.authc.pam.AbstractAuthenticationStrategy- 抛出:
org.apache.shiro.authc.AuthenticationException
-
merge
protected org.apache.shiro.authc.AuthenticationInfo merge(org.apache.shiro.authc.AuthenticationInfo info, org.apache.shiro.authc.AuthenticationInfo aggregate)Returns the specifiedaggregateinstance if is non null and valid (that is, has principals and they are not empty) immediately, or, if it is null or not valid, theinfoargument is returned instead.This logic ensures that the first valid info encountered is the one retained and all subsequent ones are ignored, since this strategy mandates that only the info from the first successfully authenticated realm be used.
- 覆盖:
merge在类中org.apache.shiro.authc.pam.AbstractAuthenticationStrategy
-
afterAttempt
public org.apache.shiro.authc.AuthenticationInfo afterAttempt(org.apache.shiro.realm.Realm realm, org.apache.shiro.authc.AuthenticationToken token, org.apache.shiro.authc.AuthenticationInfo singleRealmInfo, org.apache.shiro.authc.AuthenticationInfo aggregateInfo, Throwable t) throws org.apache.shiro.authc.AuthenticationException- 指定者:
afterAttempt在接口中org.apache.shiro.authc.pam.AuthenticationStrategy- 覆盖:
afterAttempt在类中org.apache.shiro.authc.pam.AbstractAuthenticationStrategy- 抛出:
org.apache.shiro.authc.AuthenticationException
-
-