Class JcaKeyBoxBuilder
- java.lang.Object
-
- org.bouncycastle.gpg.keybox.jcajce.JcaKeyBoxBuilder
-
public class JcaKeyBoxBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description JcaKeyBoxBuilder()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JcaKeyBox
build(byte[] encoding)
JcaKeyBox
build(InputStream input)
JcaKeyBoxBuilder
setProvider(String providerName)
Sets the provider to use to obtain cryptographic primitives.JcaKeyBoxBuilder
setProvider(Provider provider)
Sets the provider to use to obtain cryptographic primitives.
-
-
-
Method Detail
-
setProvider
public JcaKeyBoxBuilder setProvider(Provider provider)
Sets the provider to use to obtain cryptographic primitives.- Parameters:
provider
- the JCA provider to use.- Returns:
- the current builder.
-
setProvider
public JcaKeyBoxBuilder setProvider(String providerName)
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
-
-