blob: ae82b758a6a35a80ad2c7e2c1b60a69ad17d8933 [file] [log] [blame]
/*
* Copyright (C) 2021, Thomas Wolf <thomas.wolf@paranor.ch> and others
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0 which is available at
* https://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package org.eclipse.jgit.gpg.bc.internal;
import org.eclipse.jgit.lib.GpgSignatureVerifier;
import org.eclipse.jgit.lib.GpgSignatureVerifierFactory;
/**
* A {@link GpgSignatureVerifierFactory} that creates
* {@link GpgSignatureVerifier} instances that verify GPG signatures using
* BouncyCastle and that do cache public keys.
*/
public final class BouncyCastleGpgSignatureVerifierFactory
extends GpgSignatureVerifierFactory {
@Override
public GpgSignatureVerifier getVerifier() {
return new BouncyCastleGpgSignatureVerifier();
}
}