Example usage for org.bouncycastle.bcpg UserAttributePacket UserAttributePacket

List of usage examples for org.bouncycastle.bcpg UserAttributePacket UserAttributePacket

Introduction

In this page you can find the example usage for org.bouncycastle.bcpg UserAttributePacket UserAttributePacket.

Prototype

public UserAttributePacket(UserAttributeSubpacket[] subpackets) 

Source Link

Usage

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());

}