|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.openssl.jcajce.JcaPKIXIdentityBuilder
Builder for a private/public identity object representing a "user". The private key may be in
any of the forms understood by JcaPrivateKeyReader (PKCS#1 / PKCS#8, PEM or DER,
optionally password-protected via setPassword(char[])).
| Constructor Summary | |
JcaPKIXIdentityBuilder()
|
|
| Method Summary | |
JcaPKIXIdentity |
build(java.io.File keyFile,
java.io.File certificateFile)
Build an identity from the passed in key and certificate file in PEM format. |
JcaPKIXIdentity |
build(java.io.InputStream keyStream,
java.io.InputStream certificateStream)
Build an identity from the passed in key and certificate stream in PEM format. |
JcaPKIXIdentityBuilder |
setPassword(char[] password)
Set the password used to decrypt a password-protected private key. |
JcaPKIXIdentityBuilder |
setProvider(java.security.Provider provider)
|
JcaPKIXIdentityBuilder |
setProvider(java.lang.String providerName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JcaPKIXIdentityBuilder()
| Method Detail |
public JcaPKIXIdentityBuilder setProvider(java.security.Provider provider)
public JcaPKIXIdentityBuilder setProvider(java.lang.String providerName)
public JcaPKIXIdentityBuilder setPassword(char[] password)
password - the password to decrypt the private key with.
public JcaPKIXIdentity build(java.io.File keyFile,
java.io.File certificateFile)
throws java.io.IOException,
java.security.cert.CertificateException
keyFile - the PEM file containing the keycertificateFile - the PEM file containing the certificate
java.io.IOException - on a general parsing error.
java.security.cert.CertificateException - on a certificate parsing error.
public JcaPKIXIdentity build(java.io.InputStream keyStream,
java.io.InputStream certificateStream)
throws java.io.IOException,
java.security.cert.CertificateException
keyStream - the PEM stream containing the keycertificateStream - the PEM stream containing the certificate
java.io.IOException - on a general parsing error.
java.security.cert.CertificateException - on a certificate parsing error.
|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||