io.github.algomaster99.options.FromSbomOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of classfile-fingerprint Show documentation
Show all versions of classfile-fingerprint Show documentation
Generates fingerprint of all classfiles in a JAR.
package io.github.algomaster99.options;
import io.github.algomaster99.terminator.commons.cyclonedx.Bom14Schema;
import io.github.algomaster99.terminator.commons.cyclonedx.CycloneDX;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
public class FromSbomOptions {
private final Bom14Schema input;
private final String algorithm;
private final Path output;
public FromSbomOptions(Path input, String algorithm, Path output) throws IOException {
this.algorithm = algorithm;
this.input = CycloneDX.getPOJO(Files.readString(input));
this.output = output;
}
public Bom14Schema getInput() {
return input;
}
public String getAlgorithm() {
return algorithm;
}
public Path getOutput() {
return output;
}
}