io.quarkus.kubernetes.client.runtime.graal.NoBouncyCastleOpenSSL Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-kubernetes-client Show documentation
Show all versions of quarkus-kubernetes-client Show documentation
Interact with Kubernetes and develop Kubernetes Operators
package io.quarkus.kubernetes.client.runtime.graal;
import java.util.Arrays;
import java.util.function.BooleanSupplier;
class NoBouncyCastleOpenSSL implements BooleanSupplier {
static final String ORG_BOUNCYCASTLE_OPENSSL_PACKAGE = "org.bouncycastle.openssl";
static final Boolean ORG_BOUNCYCASTLE_OPENSSL_AVAILABLE = Arrays.asList(Package.getPackages()).stream()
.map(p -> p.getName()).anyMatch(p -> p.startsWith(ORG_BOUNCYCASTLE_OPENSSL_PACKAGE));
@Override
public boolean getAsBoolean() {
return !ORG_BOUNCYCASTLE_OPENSSL_AVAILABLE;
}
}