com.descope.proxy.impl.ApiProxyBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java library used to integrate with Descope.
The newest version!
package com.descope.proxy.impl;
import com.descope.model.client.SdkInfo;
import com.descope.proxy.ApiProxy;
import java.util.function.Supplier;
import lombok.experimental.UtilityClass;
@UtilityClass
public class ApiProxyBuilder {
public static ApiProxy buildProxy(SdkInfo sdkInfo) {
return new ApiProxyImpl(sdkInfo);
}
public static ApiProxy buildProxy(Supplier authHeaderSupplier, SdkInfo sdkInfo) {
return new ApiProxyImpl(authHeaderSupplier, sdkInfo);
}
}