Add Profile class

This commit is contained in:
Paul Schaub 2023-04-14 14:03:22 +02:00
parent 0ed5c52f4b
commit b8544396f8
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package sop;
/**
* Tuple class bundling a profile name and description.
*
* @see <a href="https://www.ietf.org/archive/id/draft-dkg-openpgp-stateless-cli-05.html#name-profile">
* SOP Spec - Profile</a>
*/
public class Profile {
private final String name;
private final String description;
public Profile(String name, String description) {
this.name = name;
this.description = description;
}
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public String toString() {
return getName() + ": " + getDescription();
}
}