aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgPublicKey.java
blob: 9ec5b455304277a110f12d23f70e6d93dc80a73c (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
35
36
37
38
39
40
41
42
43
44
45
/*
 * 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.gpg.bc.internal;

import java.util.List;

import org.bouncycastle.openpgp.PGPPublicKey;

/**
 * Container for GPG public keys.
 */
class BouncyCastleGpgPublicKey {

	private final PGPPublicKey publicKey;

	private final boolean exactMatch;

	private final List<String> userIds;

	BouncyCastleGpgPublicKey(PGPPublicKey publicKey, boolean exactMatch,
			List<String> userIds) {
		this.publicKey = publicKey;
		this.exactMatch = exactMatch;
		this.userIds = userIds;
	}

	PGPPublicKey getPublicKey() {
		return publicKey;
	}

	boolean isExactMatch() {
		return exactMatch;
	}

	List<String> getUserIds() {
		return userIds;
	}
}