Uses of Class
org.pgpainless.algorithm.HashAlgorithm
-
Packages that use HashAlgorithm Package Description org.pgpainless.algorithm Enums which map to OpenPGP's algorithm IDs.org.pgpainless.algorithm.negotiation Classes related to algorithm negotiation.org.pgpainless.encryption_signing Classes used to encrypt or sign data using OpenPGP.org.pgpainless.implementation Implementation factory classes to be able to switch out the underlying crypto engine implementation.org.pgpainless.key.generation Classes related to OpenPGP key generation.org.pgpainless.key.info Extract information from PGPKeyRings.org.pgpainless.key.protection Classes related to OpenPGP secret key password protection.org.pgpainless.key.util Utility functions to deal with OpenPGP keys.org.pgpainless.policy Policy regarding used algorithms.org.pgpainless.signature.builder Classes related to OpenPGP signatures.org.pgpainless.signature.subpackets Classes related to OpenPGP signatures.org.pgpainless.util Utility classes. -
-
Uses of HashAlgorithm in org.pgpainless.algorithm
Methods in org.pgpainless.algorithm that return HashAlgorithm Modifier and Type Method Description static HashAlgorithm
HashAlgorithm. fromId(int id)
Return theHashAlgorithm
value that corresponds to the provided algorithm id.static HashAlgorithm
HashAlgorithm. fromName(String name)
Return theHashAlgorithm
value that corresponds to the provided name.static HashAlgorithm
HashAlgorithm. valueOf(String name)
Returns the enum constant of this type with the specified name.static HashAlgorithm[]
HashAlgorithm. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.pgpainless.algorithm that return types with arguments of type HashAlgorithm Modifier and Type Method Description Set<HashAlgorithm>
AlgorithmSuite. getHashAlgorithms()
-
Uses of HashAlgorithm in org.pgpainless.algorithm.negotiation
Methods in org.pgpainless.algorithm.negotiation that return HashAlgorithm Modifier and Type Method Description HashAlgorithm
HashAlgorithmNegotiator. negotiateHashAlgorithm(Set<HashAlgorithm> orderedHashAlgorithmPreferencesSet)
Method parameters in org.pgpainless.algorithm.negotiation with type arguments of type HashAlgorithm Modifier and Type Method Description HashAlgorithm
HashAlgorithmNegotiator. negotiateHashAlgorithm(Set<HashAlgorithm> orderedHashAlgorithmPreferencesSet)
-
Uses of HashAlgorithm in org.pgpainless.encryption_signing
Methods in org.pgpainless.encryption_signing that return HashAlgorithm Modifier and Type Method Description HashAlgorithm
SigningOptions.SigningMethod. getHashAlgorithm()
HashAlgorithm
SigningOptions. getHashAlgorithmOverride()
Return the hash algorithm override (or null if no override is set).Methods in org.pgpainless.encryption_signing with parameters of type HashAlgorithm Modifier and Type Method Description static SigningOptions.SigningMethod
SigningOptions.SigningMethod. detachedSignature(org.bouncycastle.openpgp.PGPSignatureGenerator signatureGenerator, HashAlgorithm hashAlgorithm)
Detached signing method.static SigningOptions.SigningMethod
SigningOptions.SigningMethod. inlineSignature(org.bouncycastle.openpgp.PGPSignatureGenerator signatureGenerator, HashAlgorithm hashAlgorithm)
Inline-signature method.SigningOptions
SigningOptions. overrideHashAlgorithm(HashAlgorithm hashAlgorithmOverride)
Override hash algorithm negotiation by dictating which hash algorithm needs to be used. -
Uses of HashAlgorithm in org.pgpainless.implementation
Methods in org.pgpainless.implementation with parameters of type HashAlgorithm Modifier and Type Method Description org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
BcImplementationFactory. getPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount, Passphrase passphrase)
abstract org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
ImplementationFactory. getPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount, Passphrase passphrase)
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
JceImplementationFactory. getPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount, Passphrase passphrase)
org.bouncycastle.openpgp.operator.PGPContentSignerBuilder
ImplementationFactory. getPGPContentSignerBuilder(PublicKeyAlgorithm keyAlgorithm, HashAlgorithm hashAlgorithm)
org.bouncycastle.openpgp.operator.PGPDigestCalculator
ImplementationFactory. getPGPDigestCalculator(HashAlgorithm algorithm)
-
Uses of HashAlgorithm in org.pgpainless.key.generation
Methods in org.pgpainless.key.generation with parameters of type HashAlgorithm Modifier and Type Method Description KeySpecBuilder
KeySpecBuilder. overridePreferredHashAlgorithms(HashAlgorithm... preferredHashAlgorithms)
KeySpecBuilder
KeySpecBuilderInterface. overridePreferredHashAlgorithms(HashAlgorithm... preferredHashAlgorithms)
-
Uses of HashAlgorithm in org.pgpainless.key.info
Methods in org.pgpainless.key.info that return types with arguments of type HashAlgorithm Modifier and Type Method Description Set<HashAlgorithm>
KeyAccessor. getPreferredHashAlgorithms()
Return preferred hash algorithms.Set<HashAlgorithm>
KeyRingInfo. getPreferredHashAlgorithms()
Set<HashAlgorithm>
KeyRingInfo. getPreferredHashAlgorithms(long keyId)
Set<HashAlgorithm>
KeyRingInfo. getPreferredHashAlgorithms(String userId)
-
Uses of HashAlgorithm in org.pgpainless.key.protection
Methods in org.pgpainless.key.protection that return HashAlgorithm Modifier and Type Method Description HashAlgorithm
KeyRingProtectionSettings. getHashAlgorithm()
Constructors in org.pgpainless.key.protection with parameters of type HashAlgorithm Constructor Description KeyRingProtectionSettings(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount)
-
Uses of HashAlgorithm in org.pgpainless.key.util
Methods in org.pgpainless.key.util that return types with arguments of type HashAlgorithm Modifier and Type Method Description static Set<HashAlgorithm>
OpenPgpKeyAttributeUtil. getOrGuessPreferredHashAlgorithms(org.bouncycastle.openpgp.PGPPublicKey publicKey)
Try to extract hash algorithm preferences from self signatures.static List<HashAlgorithm>
OpenPgpKeyAttributeUtil. getPreferredHashAlgorithms(org.bouncycastle.openpgp.PGPPublicKey publicKey)
static List<HashAlgorithm>
OpenPgpKeyAttributeUtil. guessPreferredHashAlgorithms(org.bouncycastle.openpgp.PGPPublicKey publicKey)
Return the hash algorithm that was used in the latest self signature. -
Uses of HashAlgorithm in org.pgpainless.policy
Methods in org.pgpainless.policy that return HashAlgorithm Modifier and Type Method Description HashAlgorithm
Policy.HashAlgorithmPolicy. defaultHashAlgorithm()
Return the default hash algorithm.Methods in org.pgpainless.policy with parameters of type HashAlgorithm Modifier and Type Method Description boolean
Policy.HashAlgorithmPolicy. isAcceptable(HashAlgorithm hashAlgorithm)
Return true if the given hash algorithm is acceptable by this policy.Constructors in org.pgpainless.policy with parameters of type HashAlgorithm Constructor Description HashAlgorithmPolicy(HashAlgorithm defaultHashAlgorithm, List<HashAlgorithm> acceptableHashAlgorithms)
Constructor parameters in org.pgpainless.policy with type arguments of type HashAlgorithm Constructor Description HashAlgorithmPolicy(HashAlgorithm defaultHashAlgorithm, List<HashAlgorithm> acceptableHashAlgorithms)
-
Uses of HashAlgorithm in org.pgpainless.signature.builder
Fields in org.pgpainless.signature.builder declared as HashAlgorithm Modifier and Type Field Description protected HashAlgorithm
AbstractSignatureBuilder. hashAlgorithm
Methods in org.pgpainless.signature.builder that return HashAlgorithm Modifier and Type Method Description protected static HashAlgorithm
AbstractSignatureBuilder. negotiateHashAlgorithm(org.bouncycastle.openpgp.PGPPublicKey publicKey)
Negotiate aHashAlgorithm
to be used when creating the signature.Methods in org.pgpainless.signature.builder with parameters of type HashAlgorithm Modifier and Type Method Description B
AbstractSignatureBuilder. overrideHashAlgorithm(HashAlgorithm hashAlgorithm)
Constructors in org.pgpainless.signature.builder with parameters of type HashAlgorithm Constructor Description AbstractSignatureBuilder(SignatureType signatureType, org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector, HashAlgorithm hashAlgorithm, SignatureSubpackets hashedSubpackets, SignatureSubpackets unhashedSubpackets)
-
Uses of HashAlgorithm in org.pgpainless.signature.subpackets
Methods in org.pgpainless.signature.subpackets that return types with arguments of type HashAlgorithm Modifier and Type Method Description static Set<HashAlgorithm>
SignatureSubpacketsUtil. parsePreferredHashAlgorithms(org.bouncycastle.openpgp.PGPSignature signature)
Return the preferredHashAlgorithms
as present in the signature.Methods in org.pgpainless.signature.subpackets with parameters of type HashAlgorithm Modifier and Type Method Description SelfSignatureSubpackets
SelfSignatureSubpackets. setPreferredHashAlgorithms(HashAlgorithm... algorithms)
SignatureSubpackets
SignatureSubpackets. setPreferredHashAlgorithms(HashAlgorithm... algorithms)
BaseSignatureSubpackets
BaseSignatureSubpackets. setSignatureTarget(boolean isCritical, PublicKeyAlgorithm keyAlgorithm, HashAlgorithm hashAlgorithm, byte[] hashData)
BaseSignatureSubpackets
BaseSignatureSubpackets. setSignatureTarget(PublicKeyAlgorithm keyAlgorithm, HashAlgorithm hashAlgorithm, byte[] hashData)
SignatureSubpackets
SignatureSubpackets. setSignatureTarget(boolean isCritical, PublicKeyAlgorithm keyAlgorithm, HashAlgorithm hashAlgorithm, byte[] hashData)
SignatureSubpackets
SignatureSubpackets. setSignatureTarget(PublicKeyAlgorithm keyAlgorithm, HashAlgorithm hashAlgorithm, byte[] hashData)
Method parameters in org.pgpainless.signature.subpackets with type arguments of type HashAlgorithm Modifier and Type Method Description SelfSignatureSubpackets
SelfSignatureSubpackets. setPreferredHashAlgorithms(boolean isCritical, Set<HashAlgorithm> algorithms)
SelfSignatureSubpackets
SelfSignatureSubpackets. setPreferredHashAlgorithms(Set<HashAlgorithm> algorithms)
SignatureSubpackets
SignatureSubpackets. setPreferredHashAlgorithms(boolean isCritical, Set<HashAlgorithm> algorithms)
SignatureSubpackets
SignatureSubpackets. setPreferredHashAlgorithms(Set<HashAlgorithm> algorithms)
-
Uses of HashAlgorithm in org.pgpainless.util
Methods in org.pgpainless.util that return types with arguments of type HashAlgorithm Modifier and Type Method Description static List<HashAlgorithm>
ArmorUtils. getHashAlgorithms(org.bouncycastle.bcpg.ArmoredInputStream armor)
Methods in org.pgpainless.util with parameters of type HashAlgorithm Modifier and Type Method Description static void
ArmorUtils. addHashAlgorithmHeader(org.bouncycastle.bcpg.ArmoredOutputStream armor, HashAlgorithm hashAlgorithm)
-