Class JcaKeyBoxBuilder
java.lang.Object
org.bouncycastle.gpg.keybox.jcajce.JcaKeyBoxBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(byte[] encoding) build
(InputStream input) setProvider
(String providerName) Sets the provider to use to obtain cryptographic primitives.setProvider
(Provider provider) Sets the provider to use to obtain cryptographic primitives.
-
Constructor Details
-
JcaKeyBoxBuilder
public JcaKeyBoxBuilder()Default constructor.
-
-
Method Details
-
setProvider
Sets the provider to use to obtain cryptographic primitives.- Parameters:
provider
- the JCA provider to use.- Returns:
- the current builder.
-
setProvider
Sets the provider to use to obtain cryptographic primitives.- Parameters:
providerName
- the name of the JCA provider to use.- Returns:
- the current builder.
-
build
public JcaKeyBox build(InputStream input) throws NoSuchProviderException, NoSuchAlgorithmException, IOException -
build
public JcaKeyBox build(byte[] encoding) throws NoSuchProviderException, NoSuchAlgorithmException, IOException
-