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 PGPContentSignerBuilderget(PGPPublicKey signingKey) Return a new instance of thePGPContentSignerBuilderfor 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 thePGPContentSignerBuildershall use.
-
-
Method Details
-
get
Return a new instance of thePGPContentSignerBuilderfor the given signing key.- Parameters:
signingKey- public part of the signing key- Returns:
- content signer builder
-