Class JcaPGPContentSignerBuilder
- java.lang.Object
-
- org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentSignerBuilder
-
- All Implemented Interfaces:
PGPContentSignerBuilder
public class JcaPGPContentSignerBuilder extends java.lang.Object implements PGPContentSignerBuilder
-
-
Constructor Summary
Constructors Constructor Description JcaPGPContentSignerBuilder(int keyAlgorithm, int hashAlgorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PGPContentSigner
build(int signatureType, long keyID, java.security.PrivateKey privateKey)
PGPContentSigner
build(int signatureType, PGPPrivateKey privateKey)
JcaPGPContentSignerBuilder
setDigestProvider(java.lang.String providerName)
JcaPGPContentSignerBuilder
setDigestProvider(java.security.Provider provider)
JcaPGPContentSignerBuilder
setProvider(java.lang.String providerName)
JcaPGPContentSignerBuilder
setProvider(java.security.Provider provider)
JcaPGPContentSignerBuilder
setSecureRandom(java.security.SecureRandom random)
-
-
-
Method Detail
-
setSecureRandom
public JcaPGPContentSignerBuilder setSecureRandom(java.security.SecureRandom random)
-
setProvider
public JcaPGPContentSignerBuilder setProvider(java.security.Provider provider)
-
setProvider
public JcaPGPContentSignerBuilder setProvider(java.lang.String providerName)
-
setDigestProvider
public JcaPGPContentSignerBuilder setDigestProvider(java.security.Provider provider)
-
setDigestProvider
public JcaPGPContentSignerBuilder setDigestProvider(java.lang.String providerName)
-
build
public PGPContentSigner build(int signatureType, PGPPrivateKey privateKey) throws PGPException
- Specified by:
build
in interfacePGPContentSignerBuilder
- Throws:
PGPException
-
build
public PGPContentSigner build(int signatureType, long keyID, java.security.PrivateKey privateKey) throws PGPException
- Throws:
PGPException
-
-