public Credential getCredential() {
        return credential.iterator().next();
    }
This is {@link CasAuthenticationTransactionFailureEvent}.

@author Misagh Moayyed
@since 5.0.0
api/cas-server-core-api-events/src/main/java/org/apereo/cas/support/events/authentication/CasAuthenticationTransactionFailureEvent.java