keycloak-scim/services/src/main/java/org/keycloak/encoding/ResourceEncodingProvider.java

24 lines
441 B
Java

package org.keycloak.encoding;
import org.keycloak.provider.Provider;
import java.io.IOException;
import java.io.InputStream;
public interface ResourceEncodingProvider extends Provider {
InputStream getEncodedStream(StreamSupplier producer, String... path);
String getEncoding();
@Override
default void close() {
}
interface StreamSupplier {
InputStream getInputStream() throws IOException;
}
}