Welcome to mirror list, hosted at ThFree Co, Russian Federation.

JcaPKCS8Generator.java « jcajce « openssl « spongycastle « org « java « main « src « pkix - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c4e4f46c4aab4c0d0420ed41b1fecc5e49bd95c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package org.spongycastle.openssl.jcajce;

import java.security.PrivateKey;

import org.spongycastle.asn1.pkcs.PrivateKeyInfo;
import org.spongycastle.openssl.PKCS8Generator;
import org.spongycastle.operator.OutputEncryptor;
import org.spongycastle.util.io.pem.PemGenerationException;

public class JcaPKCS8Generator
    extends PKCS8Generator
{
    public JcaPKCS8Generator(PrivateKey key, OutputEncryptor encryptor)
         throws PemGenerationException
    {
         super(PrivateKeyInfo.getInstance(key.getEncoded()), encryptor);
    }
}