@Test public void testBeforeAttemptNull() { assertNull(strategy.beforeAttempt(null, null, null)); }
public AuthenticationInfo beforeAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo aggregate) throws AuthenticationException { if (getStopAfterFirstSuccess() && aggregate != null && !isEmpty(aggregate.getPrincipals())) { throw new ShortCircuitIterationException(); } return aggregate; }
FirstSuccessfulStrategy extends AbstractAuthenticationStrategy { public AuthenticationInfo beforeAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo aggregate) throws AuthenticationException { if (getStopAfterFirstSuccess() && aggregate != null && !isEmpty(aggregate.getPrincipals())) { throw new ShortCircuitIterationException(); } return aggregate; } }
FirstSuccessfulStrategy extends AbstractAuthenticationStrategy { public AuthenticationInfo beforeAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo aggregate) throws AuthenticationException { if (getStopAfterFirstSuccess() && aggregate != null && !isEmpty(aggregate.getPrincipals())) { throw new ShortCircuitIterationException(); } return aggregate; }  }
FirstSuccessfulStrategy extends AbstractAuthenticationStrategy { public AuthenticationInfo beforeAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo aggregate) throws AuthenticationException { if (getStopAfterFirstSuccess() && aggregate != null && !isEmpty(aggregate.getPrincipals())) { throw new ShortCircuitIterationException(); } return aggregate; }  void setStopAfterFirstSuccess(boolean stopAfterFirstSuccess ); boolean getStopAfterFirstSuccess(); AuthenticationInfo beforeAllAttempts(Collection<? extends Realm> realms, AuthenticationToken token); AuthenticationInfo beforeAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo aggregate); }
FirstSuccessfulStrategy extends AbstractAuthenticationStrategy { public AuthenticationInfo beforeAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo aggregate) throws AuthenticationException { if (getStopAfterFirstSuccess() && aggregate != null && !isEmpty(aggregate.getPrincipals())) { throw new ShortCircuitIterationException(); } return aggregate; }  void setStopAfterFirstSuccess(boolean stopAfterFirstSuccess ); boolean getStopAfterFirstSuccess(); AuthenticationInfo beforeAllAttempts(Collection<? extends Realm> realms, AuthenticationToken token); AuthenticationInfo beforeAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo aggregate);  }