List of usage examples for org.bouncycastle.bcpg UserAttributePacket UserAttributePacket
public UserAttributePacket(UserAttributeSubpacket[] subpackets)
From source file:org.sufficientlysecure.keychain.pgp.WrappedUserAttribute.java
License:Open Source License
/** Writes this object to an ObjectOutputStream. */ private void writeObject(java.io.ObjectOutputStream out) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); BCPGOutputStream bcpg = new BCPGOutputStream(baos); bcpg.writePacket(new UserAttributePacket(mVector.toSubpacketArray())); out.writeObject(baos.toByteArray()); }