}
private AuthenticationState transition() {
if (mechanismIterator.hasNext()) {
final AuthenticationMechanism mechanism = mechanismIterator.next();
AuthenticationMechanismOutcome outcome = mechanism.authenticate(exchange, SecurityContextImpl.this);
if (outcome == null) {
throw UndertowMessages.MESSAGES.authMechanismOutcomeNull();
}