private void writeObject(ObjectOutputStream out) throws IOException { out.writeObject(this.getEncoded()); out.writeObject(algorithm); out.writeBoolean(withCompression); attrCarrier.writeObject(out); }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { byte[] enc = (byte[]) in.readObject(); populateFromPrivKeyInfo(PrivateKeyInfo.getInstance(ASN1Object.fromByteArray(enc))); this.algorithm = (String) in.readObject(); this.withCompression = in.readBoolean(); this.attrCarrier = new PKCS12BagAttributeCarrierImpl(); attrCarrier.readObject(in); }
public DEREncodable getBagAttribute(DERObjectIdentifier oid) { return attrCarrier.getBagAttribute(oid); }
public Enumeration getBagAttributeKeys() { return attrCarrier.getBagAttributeKeys(); }
public void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute) { attrCarrier.setBagAttribute(oid, attribute); }