io.quarkus.vault.transit.VaultVerificationBatchException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-vault Show documentation
Show all versions of quarkus-vault Show documentation
Store your credentials securely in HashiCorp Vault
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