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