Class PGPContentSignerBuilderProvider
java.lang.Object
org.bouncycastle.openpgp.operator.PGPContentSignerBuilderProvider
- Direct Known Subclasses:
BcPGPContentSignerBuilderProvider
,JcaPGPContentSignerBuilderProvider
Provider class for
PGPContentSignerBuilder
instances.
Concrete implementations of this class can choose the cryptographic backend (BC, JCA/JCE).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PGPContentSignerBuilder
get
(PGPPublicKey signingKey) Return a new instance of thePGPContentSignerBuilder
for the given signing key.
-
Field Details
-
hashAlgorithmId
protected final int hashAlgorithmId
-
-
Constructor Details
-
PGPContentSignerBuilderProvider
public PGPContentSignerBuilderProvider(int hashAlgorithmId) Constructor.- Parameters:
hashAlgorithmId
- ID of the hash algorithm thePGPContentSignerBuilder
shall use.
-
-
Method Details
-
get
Return a new instance of thePGPContentSignerBuilder
for the given signing key.- Parameters:
signingKey
- public part of the signing key- Returns:
- content signer builder
-