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

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

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

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

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

/**
 * Batch exception thrown from {@link VaultTransitSecretEngine#decrypt(String, List)} if any error occurs.
 * The exception contains a map of errors with the associated message, and a map of successful decryptions.
 */
public class VaultDecryptionBatchException extends VaultBatchException {

    private Map results;

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy