io.quarkus.oidc.token.propagation.runtime.OidcTokenPropagationConfigRelocateInterceptor Maven / Gradle / Ivy
package io.quarkus.oidc.token.propagation.runtime;
import java.util.function.Function;
import io.quarkus.runtime.util.StringUtil;
import io.smallrye.config.RelocateConfigSourceInterceptor;
/**
* @deprecated maps the old config to the new config, should be removed at some point
*/
@Deprecated(forRemoval = true, since = "3.9")
public class OidcTokenPropagationConfigRelocateInterceptor extends RelocateConfigSourceInterceptor {
private static final String OLD_PREFIX = "quarkus.oidc-token-propagation.";
private static final String NEW_PREFIX = "quarkus.resteasy-client-oidc-token-propagation.";
private static final Function RENAME_FUNCTION = new Function() {
@Override
public String apply(String s) {
return StringUtil.changePrefix(s, OLD_PREFIX, NEW_PREFIX);
}
};
public OidcTokenPropagationConfigRelocateInterceptor() {
super(RENAME_FUNCTION);
}
}