1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-26 22:32:07 +01:00

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

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);