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

org.pgpainless.exception.MissingPassphraseException Maven / Gradle / Ivy

There is a newer version: 1.6.7
Show newest version
// SPDX-FileCopyrightText: 2021 Paul Schaub 
//
// SPDX-License-Identifier: Apache-2.0

package org.pgpainless.exception;

import java.util.Arrays;
import java.util.Collections;
import java.util.Set;

import org.bouncycastle.openpgp.PGPException;
import org.pgpainless.key.SubkeyIdentifier;

public class MissingPassphraseException extends PGPException {

    private final Set keyIds;

    public MissingPassphraseException(Set keyIds) {
        super("Missing passphrase encountered for keys " + Arrays.toString(keyIds.toArray()));
        this.keyIds = Collections.unmodifiableSet(keyIds);
    }

    public Set getKeyIds() {
        return keyIds;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy