class IdpAssertionMetricsCollector {

    public void update(Assertion assertion) {
        String idpName = replaceNonAlphaNumericCharacters(assertion);
        String metricName = NOT_ON_OR_AFTER + idpName;
        Long maxNotOnOrAfter = findMaxNotOnOrAfter(assertion.getSubject().getSubjectConfirmations(), notOnOrAfterLatestMax.get(metricName));
        notOnOrAfterLatestMax.put(metricName, maxNotOnOrAfter);
        updateMetricRegistry(metricName);
    }

    public  IdpAssertionMetricsCollector(MetricRegistry metricRegistry);

}