public class JcaPKCS12SafeBagBuilder extends PKCS12SafeBagBuilder
PKCS12SafeBagBuilder that accepts standard JCA
X509Certificate and PrivateKey inputs.| Constructor and Description |
|---|
JcaPKCS12SafeBagBuilder(java.security.PrivateKey privateKey)
Build a
keyBag from a JCA PrivateKey (no encryption). |
JcaPKCS12SafeBagBuilder(java.security.PrivateKey privateKey,
OutputEncryptor encryptor)
Build a
pkcs8ShroudedKeyBag by encrypting the supplied JCA PrivateKey. |
JcaPKCS12SafeBagBuilder(java.security.cert.X509Certificate certificate)
Build a
certBag from a JCA X509Certificate. |
addBagAttribute, buildpublic JcaPKCS12SafeBagBuilder(java.security.cert.X509Certificate certificate)
throws java.io.IOException
certBag from a JCA X509Certificate.certificate - the certificate to wrap.java.io.IOException - if the certificate cannot be encoded.public JcaPKCS12SafeBagBuilder(java.security.PrivateKey privateKey,
OutputEncryptor encryptor)
pkcs8ShroudedKeyBag by encrypting the supplied JCA PrivateKey.privateKey - the private key to wrap.encryptor - the password-based output encryptor used to protect the key.public JcaPKCS12SafeBagBuilder(java.security.PrivateKey privateKey)
keyBag from a JCA PrivateKey (no encryption).privateKey - the private key payload.