private JwtContextFactory getDelegate() {
        return switch (openIdConfigProvider.get().getIdentityProviderType()) {
            case INTERNAL_IDP, TEST_CREDENTIALS -> internalJwtContextFactory;
            case EXTERNAL_IDP -> standardJwtContextFactory;
            case NO_IDP ->
                    throw new UnsupportedOperationException("No JwtContextFactory when IDP type is " + IdpType.NO_IDP);
        };
    }
A front for {@link InternalJwtContextFactory} and {@link StandardJwtContextFactory}
that picks the delegate based on the identity provider that has been configured, e.g.
internal vs external IDP.
stroom-security/stroom-security-impl/src/main/java/stroom/security/impl/DelegatingJwtContextFactory.java