Search in sources :

Example 1 with PKCS12BagAttributeCarrierImpl

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

the class JCERSAPrivateKey method readObject.

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

Example 2 with PKCS12BagAttributeCarrierImpl

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

the class JDKDSAPrivateKey method readObject.

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    this.x = (BigInteger) in.readObject();
    this.dsaSpec = new DSAParameterSpec((BigInteger) in.readObject(), (BigInteger) in.readObject(), (BigInteger) in.readObject());
    this.attrCarrier = new PKCS12BagAttributeCarrierImpl();
    attrCarrier.readObject(in);
}
Also used : DSAParameterSpec(java.security.spec.DSAParameterSpec) PKCS12BagAttributeCarrierImpl(org.bouncycastle.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl) BigInteger(java.math.BigInteger)

Example 3 with PKCS12BagAttributeCarrierImpl

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

the class BCECPrivateKey method readObject.

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

Example 4 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)

Example 5 with PKCS12BagAttributeCarrierImpl

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

the class BCDSAPrivateKey method readObject.

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

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