Package org.pgpainless.key.util
Class OpenPgpKeyAttributeUtil
- java.lang.Object
-
- org.pgpainless.key.util.OpenPgpKeyAttributeUtil
-
public final class OpenPgpKeyAttributeUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<HashAlgorithm>
getPreferredHashAlgorithms(org.bouncycastle.openpgp.PGPPublicKey publicKey)
static java.util.List<HashAlgorithm>
guessPreferredHashAlgorithms(org.bouncycastle.openpgp.PGPPublicKey publicKey)
Return the hash algorithm that was used in the latest self signature.
-
-
-
Method Detail
-
getPreferredHashAlgorithms
public static java.util.List<HashAlgorithm> getPreferredHashAlgorithms(org.bouncycastle.openpgp.PGPPublicKey publicKey)
-
guessPreferredHashAlgorithms
public static java.util.List<HashAlgorithm> guessPreferredHashAlgorithms(org.bouncycastle.openpgp.PGPPublicKey publicKey)
Return the hash algorithm that was used in the latest self signature.- Parameters:
publicKey
- public key- Returns:
- list of hash algorithm
-
-