Add javadoc to SignatureSubpacketsUtil

This commit is contained in:
Paul Schaub 2022-04-04 10:40:57 +02:00
parent 58dee0d970
commit 4aaa242d64
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 7 additions and 1 deletions

View File

@ -438,7 +438,7 @@ public final class SignatureSubpacketsUtil {
/**
* Return the notation data subpackets from the signatures unhashed area.
*
* @param signature signture
* @param signature signature
* @return unhashed notations
*/
public static List<NotationData> getUnhashedNotationData(PGPSignature signature) {
@ -638,6 +638,12 @@ public final class SignatureSubpacketsUtil {
}
}
/**
* Make sure that a key of the given {@link PublicKeyAlgorithm} is able to carry the given key flags.
*
* @param algorithm key algorithm
* @param flags key flags
*/
public static void assureKeyCanCarryFlags(PublicKeyAlgorithm algorithm, KeyFlag... flags) {
final int mask = KeyFlag.toBitmask(flags);