Search in sources :

Example 6 with PKCS12BagAttributeCarrierImpl

use of org.bouncycastle.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl in project robovm by robovm.

the class BCRSAPrivateKey method readObject.

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    this.attrCarrier = new PKCS12BagAttributeCarrierImpl();
}
Also used : PKCS12BagAttributeCarrierImpl(org.bouncycastle.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl)

Example 7 with PKCS12BagAttributeCarrierImpl

use of org.bouncycastle.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl in project robovm by robovm.

the class JCEECPrivateKey method readObject.

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    byte[] enc = (byte[]) in.readObject();
    populateFromPrivKeyInfo(PrivateKeyInfo.getInstance(ASN1Primitive.fromByteArray(enc)));
    this.algorithm = (String) in.readObject();
    this.withCompression = in.readBoolean();
    this.attrCarrier = new PKCS12BagAttributeCarrierImpl();
    attrCarrier.readObject(in);
}
Also used : PKCS12BagAttributeCarrierImpl(org.bouncycastle.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl)

Aggregations

PKCS12BagAttributeCarrierImpl (org.bouncycastle.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl)7 BigInteger (java.math.BigInteger)3 DSAParameterSpec (java.security.spec.DSAParameterSpec)2 DHParameterSpec (javax.crypto.spec.DHParameterSpec)1