|
Bouncy Castle Cryptography 1.49 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.openssl.PKCS8Generator
public class PKCS8Generator
| Field Summary | |
|---|---|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
AES_128_CBC
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
AES_192_CBC
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
AES_256_CBC
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
DES3_CBC
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
PBE_SHA1_2DES
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
PBE_SHA1_3DES
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
PBE_SHA1_RC2_128
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
PBE_SHA1_RC2_40
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
PBE_SHA1_RC4_128
|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
PBE_SHA1_RC4_40
|
| Constructor Summary | |
|---|---|
PKCS8Generator(java.security.PrivateKey key)
Deprecated. use JcaPKCS8Generator |
|
PKCS8Generator(java.security.PrivateKey key,
org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm,
java.security.Provider provider)
Deprecated. use JcaPKCS8Generator |
|
PKCS8Generator(java.security.PrivateKey key,
org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm,
java.lang.String provider)
Deprecated. use JcaPKCS8Generator |
|
PKCS8Generator(org.bouncycastle.asn1.pkcs.PrivateKeyInfo key,
org.bouncycastle.operator.OutputEncryptor outputEncryptor)
Base constructor. |
|
| Method Summary | |
|---|---|
org.bouncycastle.util.io.pem.PemObject |
generate()
|
PKCS8Generator |
setIterationCount(int iterationCount)
Deprecated. ignored in the updated case. |
PKCS8Generator |
setPassword(char[] password)
Deprecated. ignored in the updated case. |
PKCS8Generator |
setSecureRandom(java.security.SecureRandom random)
Deprecated. ignored in the updated case. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier AES_128_CBC
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier AES_192_CBC
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier AES_256_CBC
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DES3_CBC
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_RC4_128
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_RC4_40
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_3DES
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_2DES
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_RC2_128
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_RC2_40
| Constructor Detail |
|---|
public PKCS8Generator(java.security.PrivateKey key)
key - private key to be encoded.
public PKCS8Generator(java.security.PrivateKey key,
org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm,
java.lang.String provider)
throws java.security.NoSuchProviderException,
java.security.NoSuchAlgorithmException
key - private key to be encodedalgorithm - encryption algorithm to useprovider - name of provider to use
java.security.NoSuchProviderException - if provider cannot be found
java.security.NoSuchAlgorithmException - if algorithm/mode cannot be found
public PKCS8Generator(java.security.PrivateKey key,
org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm,
java.security.Provider provider)
throws java.security.NoSuchAlgorithmException
key - private key to be encodedalgorithm - encryption algorithm to useprovider - provider to use
java.security.NoSuchAlgorithmException - if algorithm/mode cannot be found
public PKCS8Generator(org.bouncycastle.asn1.pkcs.PrivateKeyInfo key,
org.bouncycastle.operator.OutputEncryptor outputEncryptor)
| Method Detail |
|---|
public PKCS8Generator setSecureRandom(java.security.SecureRandom random)
public PKCS8Generator setPassword(char[] password)
public PKCS8Generator setIterationCount(int iterationCount)
public org.bouncycastle.util.io.pem.PemObject generate()
throws org.bouncycastle.util.io.pem.PemGenerationException
generate in interface org.bouncycastle.util.io.pem.PemObjectGeneratororg.bouncycastle.util.io.pem.PemGenerationException
|
Bouncy Castle Cryptography 1.49 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||