class DefaultAuthenticationStatementsProvider implements AuthenticationStatementsProvider {

    public List<AuthnStatement> get(SAML2Config saml2Config, String authNContextClassRef) throws TokenCreationException {
        try {
            AuthnStatement authnStatement = AssertionFactory.getInstance().createAuthnStatement();
            authnStatement.setAuthnInstant(new Date());
            AuthnContext authnContext = AssertionFactory.getInstance().createAuthnContext();
            authnContext.setAuthnContextClassRef(authNContextClassRef);
            authnStatement.setAuthnContext(authnContext);
            ArrayList<AuthnStatement> statements = new ArrayList<AuthnStatement>(1);
            statements.add(authnStatement);
            return statements;
        } catch (SAML2Exception e) {
            throw new TokenCreationException(ResourceException.INTERNAL_ERROR,
                    "Exception caught generating AuthenticationStatement in DefaultAuthenticationStatementProvider: " + e, e);

        }
    }

}