package net.siegeln.cameleer.saas.certificate;

import java.util.List;

public record CertValidationResult(
    boolean valid,
    List<String> errors,
    CertificateInfo info
) {
    public static CertValidationResult ok(CertificateInfo info) {
        return new CertValidationResult(true, List.of(), info);
    }

    public static CertValidationResult fail(List<String> errors) {
        return new CertValidationResult(false, errors, null);
    }
}
