Example #1
0
  private void writeObject(ObjectOutputStream out) throws IOException {
    out.writeObject(this.getEncoded());
    out.writeObject(algorithm);
    out.writeBoolean(withCompression);

    attrCarrier.writeObject(out);
  }
Example #2
0
  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);
  }
Example #3
0
 public DEREncodable getBagAttribute(DERObjectIdentifier oid) {
   return attrCarrier.getBagAttribute(oid);
 }
Example #4
0
 public Enumeration getBagAttributeKeys() {
   return attrCarrier.getBagAttributeKeys();
 }
Example #5
0
 public void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute) {
   attrCarrier.setBagAttribute(oid, attribute);
 }