You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BouncyCastleGpgSignatureVerifierFactory.java 875B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) 2021, Thomas Wolf <thomas.wolf@paranor.ch> and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.gpg.bc.internal;
  11. import org.eclipse.jgit.lib.GpgSignatureVerifier;
  12. import org.eclipse.jgit.lib.GpgSignatureVerifierFactory;
  13. /**
  14. * A {@link GpgSignatureVerifierFactory} that creates
  15. * {@link GpgSignatureVerifier} instances that verify GPG signatures using
  16. * BouncyCastle and that do cache public keys.
  17. */
  18. public final class BouncyCastleGpgSignatureVerifierFactory
  19. extends GpgSignatureVerifierFactory {
  20. @Override
  21. public GpgSignatureVerifier getVerifier() {
  22. return new BouncyCastleGpgSignatureVerifier();
  23. }
  24. }