All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.vault.transit.VaultVerificationBatchException Maven / Gradle / Ivy

There is a newer version: 3.0.0.Beta1
Show newest version
package io.quarkus.vault.transit;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import io.quarkus.vault.VaultTransitSecretEngine;
import io.quarkus.vault.runtime.transit.VerificationResult;

/**
 * Batch exception thrown from {@link VaultTransitSecretEngine#verifySignature(String, List)} if any error occurs.
 * The exception contains a map of errors with the associated message, and a list of successful verifications.
 * Note that a signature not matching an input is considered as an error, and will throw an exception.
 */
public class VaultVerificationBatchException extends VaultBatchException {

    private Map results;

    public VaultVerificationBatchException(String message, Map results) {
        super(message);
        this.results = results;
    }

    public Map getErrors() {
        return getErrors(results);
    }

    public List getValid() {
        return new ArrayList<>(getValid(results).keySet());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy