Example usage for org.bouncycastle.bcpg UserAttributeSubpacket UserAttributeSubpacket

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

Introduction

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

Prototype

protected UserAttributeSubpacket(int type, byte[] data) 

Source Link

Usage

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

}