List of usage examples for org.bouncycastle.bcpg UserAttributeSubpacket UserAttributeSubpacket
protected UserAttributeSubpacket(int type, byte[] data)
From source file:org.sufficientlysecure.keychain.pgp.WrappedUserAttribute.java
License:Open Source License
public static WrappedUserAttribute fromSubpacket(int type, byte[] data) { UserAttributeSubpacket subpacket = new UserAttributeSubpacket(type, data); PGPUserAttributeSubpacketVector vector = new PGPUserAttributeSubpacketVector( new UserAttributeSubpacket[] { subpacket }); return new WrappedUserAttribute(vector); }