Class PKCS8Generator

  • All Implemented Interfaces:
    org.bouncycastle.util.io.pem.PemObjectGenerator
    Direct Known Subclasses:
    JcaPKCS8Generator

    public class PKCS8Generator
    extends java.lang.Object
    implements org.bouncycastle.util.io.pem.PemObjectGenerator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      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  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACGOST3411  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA1  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA224  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA256  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA3_224  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA3_256  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA3_384  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA3_512  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA384  
      static org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA512  
    • Constructor Summary

      Constructors 
      Constructor Description
      PKCS8Generator​(org.bouncycastle.asn1.pkcs.PrivateKeyInfo key, OutputEncryptor outputEncryptor)
      Base constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bouncycastle.util.io.pem.PemObject generate()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • AES_128_CBC

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier AES_128_CBC
      • AES_192_CBC

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier AES_192_CBC
      • AES_256_CBC

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier AES_256_CBC
      • DES3_CBC

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DES3_CBC
      • PBE_SHA1_RC4_128

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_RC4_128
      • PBE_SHA1_RC4_40

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_RC4_40
      • PBE_SHA1_3DES

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_3DES
      • PBE_SHA1_2DES

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_2DES
      • PBE_SHA1_RC2_128

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_RC2_128
      • PBE_SHA1_RC2_40

        public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PBE_SHA1_RC2_40
      • PRF_HMACSHA1

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA1
      • PRF_HMACSHA224

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA224
      • PRF_HMACSHA256

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA256
      • PRF_HMACSHA384

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA384
      • PRF_HMACSHA512

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA512
      • PRF_HMACGOST3411

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACGOST3411
      • PRF_HMACSHA3_224

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA3_224
      • PRF_HMACSHA3_256

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA3_256
      • PRF_HMACSHA3_384

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA3_384
      • PRF_HMACSHA3_512

        public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier PRF_HMACSHA3_512
    • Constructor Detail

      • PKCS8Generator

        public PKCS8Generator​(org.bouncycastle.asn1.pkcs.PrivateKeyInfo key,
                              OutputEncryptor outputEncryptor)
        Base constructor.
    • Method Detail

      • generate

        public org.bouncycastle.util.io.pem.PemObject generate()
                                                        throws org.bouncycastle.util.io.pem.PemGenerationException
        Specified by:
        generate in interface org.bouncycastle.util.io.pem.PemObjectGenerator
        Throws:
        org.bouncycastle.util.io.pem.PemGenerationException