![JAR search and dependency download from the Maven repository](/logo.png)
ch.openchvote.administrator.plain.SecretData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of administrator Show documentation
Show all versions of administrator Show documentation
This module implements the 'administrator' party of the CHVote protocol.
/*
* Copyright (C) 2024 Berner Fachhochschule https://e-voting.bfh.ch
*
* - This program is free software: you can redistribute it and/or modify -
* - it under the terms of the GNU Affero General Public License as published by -
* - the Free Software Foundation, either version 3 of the License, or -
* - (at your option) any later version. -
* - -
* - This program is distributed in the hope that it will be useful, -
* - but WITHOUT ANY WARRANTY; without even the implied warranty of -
* - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -
* - GNU General Public License for more details. -
* - -
* - You should have received a copy of the GNU Affero General Public License -
* - along with this program. If not, see . -
*/
package ch.openchvote.administrator.plain;
import ch.openchvote.framework.party.EventData;
import ch.openchvote.utilities.tuples.Singleton;
import ch.openchvote.utilities.tuples.Tuple;
import java.math.BigInteger;
/**
* Instances of this class represent the administrator's secret data. The class inherits from the generic {@link Tuple}
* subclass, that matches with the number of {@link EventData.Data} and {@link EventData.DataMap} objects to store.
* Convenience methods for accessing the fields with names as specified by the CHVote protocol are provided.
*/
@SuppressWarnings("MissingJavadoc")
public final class SecretData extends Singleton<
EventData.Data> // sk_0
implements EventData {
public SecretData() {
this(new Data<>());
}
// private constructor for initializing all fields
private SecretData(Data sk_0) {
super(sk_0);
}
// private copy constructor
private SecretData(SecretData secretData) {
this(secretData.get_sk_0());
}
public Data get_sk_0() {
return this.getFirst();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy