mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-25 16:42:07 +01:00
Add Profile class
This commit is contained in:
parent
0ed5c52f4b
commit
b8544396f8
1 changed files with 34 additions and 0 deletions
34
sop-java/src/main/java/sop/Profile.java
Normal file
34
sop-java/src/main/java/sop/Profile.java
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue