blob: c315428c33baa167dc375998d71dcf50ef2b0a7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Copyright (C) 2024, Thomas Wolf <twolf@apache.org> 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.signing.ssh;
import org.eclipse.jgit.lib.GpgConfig.GpgFormat;
import org.eclipse.jgit.lib.SignatureVerifier;
import org.eclipse.jgit.internal.signing.ssh.SshSignatureVerifier;
import org.eclipse.jgit.lib.SignatureVerifierFactory;
/**
* Factory creating {@link SshSignatureVerifier}s.
*
* @since 7.1
*/
public final class SshSignatureVerifierFactory
implements SignatureVerifierFactory {
@Override
public GpgFormat getType() {
return GpgFormat.SSH;
}
@Override
public SignatureVerifier create() {
return new SshSignatureVerifier();
}
}
|