Exemplo n.º 1
0
  private void writeObject(ObjectOutputStream out) throws IOException {
    out.writeObject(this.getEncoded());
    out.writeObject(algorithm);
    out.writeBoolean(withCompression);

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