@Override
    public void replaceAttributes(final Authentication authentication) {
        attributes.clear();
        principal.getAttributes().clear();
        updateAttributes(authentication);
    }
Map of handler name to handler authentication failure cause.
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultAuthentication.java