Package org.xipki.security.pkcs12
Class P12KeyGenerator
- java.lang.Object
-
- org.xipki.security.pkcs12.P12KeyGenerator
-
public class P12KeyGenerator extends Object
PKCS#12 key generator.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classP12KeyGenerator.KeyPairWithSubjectPublicKeyInfo
-
Constructor Summary
Constructors Constructor Description P12KeyGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyStoreWrappergenerateDSAKeypair(int plength, int qlength, KeystoreGenerationParameters params, String selfSignedCertSubject)KeyStoreWrappergenerateECKeypair(org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid, KeystoreGenerationParameters params, String selfSignedCertSubject)KeyStoreWrappergenerateEdECKeypair(org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid, KeystoreGenerationParameters params, String selfSignedCertSubject)static KeyStoreWrappergenerateIdentity(P12KeyGenerator.KeyPairWithSubjectPublicKeyInfo kp, KeystoreGenerationParameters params, String selfSignedCertSubject)KeyStoreWrappergenerateRSAKeypair(int keysize, BigInteger publicExponent, KeystoreGenerationParameters params, String selfSignedCertSubject)KeyStoreWrappergenerateSecretKey(String algorithm, int keyBitLen, KeystoreGenerationParameters params)
-
-
-
Method Detail
-
generateRSAKeypair
public KeyStoreWrapper generateRSAKeypair(int keysize, BigInteger publicExponent, KeystoreGenerationParameters params, String selfSignedCertSubject) throws Exception
- Throws:
Exception
-
generateDSAKeypair
public KeyStoreWrapper generateDSAKeypair(int plength, int qlength, KeystoreGenerationParameters params, String selfSignedCertSubject) throws Exception
- Throws:
Exception
-
generateECKeypair
public KeyStoreWrapper generateECKeypair(org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid, KeystoreGenerationParameters params, String selfSignedCertSubject) throws Exception
- Throws:
Exception
-
generateEdECKeypair
public KeyStoreWrapper generateEdECKeypair(org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid, KeystoreGenerationParameters params, String selfSignedCertSubject) throws Exception
- Throws:
Exception
-
generateSecretKey
public KeyStoreWrapper generateSecretKey(String algorithm, int keyBitLen, KeystoreGenerationParameters params) throws Exception
- Throws:
Exception
-
generateIdentity
public static KeyStoreWrapper generateIdentity(P12KeyGenerator.KeyPairWithSubjectPublicKeyInfo kp, KeystoreGenerationParameters params, String selfSignedCertSubject) throws Exception
- Throws:
Exception
-
-