public class FirstExceptionStrategy
extends org.apache.shiro.authc.pam.FirstSuccessfulStrategy
AuthenticationStrategy implementation that throws the first exception it gets
and ignores all subsequent realms. If there is no exceptions it works as the FirstSuccessfulStrategy
WARN: This approach works fine as long as there is ONLY ONE Realm per Token type.FirstSuccessfulStrategy| Constructor and Description |
|---|
FirstExceptionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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) |
beforeAllAttempts, mergepublic 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 in interface org.apache.shiro.authc.pam.AuthenticationStrategyafterAttempt in class org.apache.shiro.authc.pam.AbstractAuthenticationStrategyorg.apache.shiro.authc.AuthenticationExceptionCopyright © 2004–2015. All rights reserved.