class OpenIdConnectTokenPKIProviderFactoryImpl implements OpenIdConnectTokenPKIProviderFactory {

    @Override
    public OpenIdConnectTokenPKIProvider getOpenIdConnectTokenCryptoProvider(OpenIdConnectTokenConfig tokenConfig) throws TokenCreationException {
        if (realProviderRequired(tokenConfig)) {
            return new OpenIdConnectTokenPKIProviderImpl(tokenConfig);
        } else {
            return new FauxOpenIdConnectTokenPKIProvider(logger);
        }
    }

    @Inject  OpenIdConnectTokenPKIProviderFactoryImpl(Logger logger);

}