Package org.bouncycastle.openssl.jcajce
Class JcaPKIXIdentityBuilder
java.lang.Object
org.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder
Builder for a private/public identity object representing a "user"
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBuild an identity from the passed in key and certificate file in PEM format.build
(InputStream keyStream, InputStream certificateStream) Build an identity from the passed in key and certificate stream in PEM format.setProvider
(String providerName) setProvider
(Provider provider)
-
Constructor Details
-
JcaPKIXIdentityBuilder
public JcaPKIXIdentityBuilder()
-
-
Method Details
-
setProvider
-
setProvider
-
build
public JcaPKIXIdentity build(File keyFile, File certificateFile) throws IOException, CertificateException Build an identity from the passed in key and certificate file in PEM format.- Parameters:
keyFile
- the PEM file containing the keycertificateFile
- the PEM file containing the certificate- Returns:
- an identity object.
- Throws:
IOException
- on a general parsing error.CertificateException
- on a certificate parsing error.
-
build
public JcaPKIXIdentity build(InputStream keyStream, InputStream certificateStream) throws IOException, CertificateException Build an identity from the passed in key and certificate stream in PEM format.- Parameters:
keyStream
- the PEM stream containing the keycertificateStream
- the PEM stream containing the certificate- Returns:
- an identity object.
- Throws:
IOException
- on a general parsing error.CertificateException
- on a certificate parsing error.
-