public class JcaPGPDigestCalculatorProviderBuilder
extends java.lang.Object
PGPDigestCalculatorProvider
instances that obtain cryptographic primitives
using the JCA API.
By default digest calculator providers obtained from this builder will use the default JCA algorithm lookup mechanisms (i.e. specifying no provider), but a specific provider can be specified prior to building.
Constructor and Description |
---|
JcaPGPDigestCalculatorProviderBuilder()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
PGPDigestCalculatorProvider |
build()
Constructs a new PGPDigestCalculatorProvider
|
JcaPGPDigestCalculatorProviderBuilder |
setProvider(java.security.Provider provider)
Sets the provider to use to obtain cryptographic primitives.
|
JcaPGPDigestCalculatorProviderBuilder |
setProvider(java.lang.String providerName)
Sets the provider to use to obtain cryptographic primitives.
|
public JcaPGPDigestCalculatorProviderBuilder()
public JcaPGPDigestCalculatorProviderBuilder setProvider(java.security.Provider provider)
provider
- the JCA provider to use.public JcaPGPDigestCalculatorProviderBuilder setProvider(java.lang.String providerName)
providerName
- the name of the JCA provider to use.public PGPDigestCalculatorProvider build() throws PGPException
PGPException
- if an error occurs constructing the digest calculator provider.