Package com.netscape.cmscore.util
Class PFXUtils
- java.lang.Object
-
- com.netscape.cmscore.util.PFXUtils
-
public class PFXUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PFXUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.mozilla.jss.asn1.SET
createBagAttrs(java.lang.String nickName, byte[] localKeyId)
Creates bag attributes.static byte[]
createLocalKeyId(java.security.cert.X509Certificate cert)
Creates local key identifier.static byte[]
createPFX(java.lang.String pwd, java.security.cert.X509Certificate x509cert, byte[] privateKeyInfo)
Creates a PKCS12 package.
-
-
-
Method Detail
-
createPFX
public static byte[] createPFX(java.lang.String pwd, java.security.cert.X509Certificate x509cert, byte[] privateKeyInfo) throws EBaseException
Creates a PKCS12 package.- Throws:
EBaseException
-
createLocalKeyId
public static byte[] createLocalKeyId(java.security.cert.X509Certificate cert) throws EBaseException
Creates local key identifier.- Throws:
EBaseException
-
createBagAttrs
public static org.mozilla.jss.asn1.SET createBagAttrs(java.lang.String nickName, byte[] localKeyId) throws EBaseException
Creates bag attributes.- Throws:
EBaseException
-
-