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.

BouncyCastleGpgSignerFactory.java 842B

12345678910111213141516171819202122232425262728293031323334
  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;
  11. import org.eclipse.jgit.gpg.bc.internal.BouncyCastleGpgSigner;
  12. import org.eclipse.jgit.lib.GpgSigner;
  13. /**
  14. * Factory for creating a {@link GpgSigner} based on Bouncy Castle.
  15. *
  16. * @since 5.11
  17. */
  18. public final class BouncyCastleGpgSignerFactory {
  19. private BouncyCastleGpgSignerFactory() {
  20. // No instantiation
  21. }
  22. /**
  23. * Creates a new {@link GpgSigner}.
  24. *
  25. * @return the {@link GpgSigner}
  26. */
  27. public static GpgSigner create() {
  28. return new BouncyCastleGpgSigner();
  29. }
  30. }