1 package net.pterodactylus.util.fcp;
3 import java.security.interfaces.DSAParams;
6 * Container for the DSA group of a peer. A DSA group consists of a base
7 * (called “g”), a prime (called “p”) and a subprime (called “q”).
10 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
13 public class DSAGroup {
15 /** The base of the DSA group. */
16 private final String base;
18 /** The prime of the DSA group. */
19 private final String prime;
21 /** The subprime of the DSA group. */
22 private final String subprime;
25 * Creates a new DSA group with the given base (“g”), prime (“p”), and
29 * The base of the DSA group
31 * The prime of the DSA group
33 * The subprime of the DSA group
35 public DSAGroup(String base, String prime, String subprime) {
38 this.subprime = subprime;
42 * Returns the base (“g”) of the DSA group.
44 * @return The base of the DSA group
46 public String getBase() {
51 * Returns the prime (“p”) of the DSA group.
53 * @return The prime of the DSA group
55 public String getPrime() {
60 * Returns the subprime (“q”) of the DSA group.
62 * @return The subprime of the DSA group
64 public String getSubprime() {