Example usage for org.bouncycastle.bcpg SignatureSubpacketTags EXPORTABLE

List of usage examples for org.bouncycastle.bcpg SignatureSubpacketTags EXPORTABLE

Introduction

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

Prototype

int EXPORTABLE

To view the source code for org.bouncycastle.bcpg SignatureSubpacketTags EXPORTABLE.

Click Source Link

Usage

From source file:org.sufficientlysecure.keychain.pgp.WrappedSignature.java

License:Open Source License

public boolean isLocal() {
    if (mSig.getHashedSubPackets() == null
            || !mSig.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.EXPORTABLE)) {
        return false;
    }//from  w w  w  .  j a  v a  2 s. co m
    SignatureSubpacket p = mSig.getHashedSubPackets().getSubpacket(SignatureSubpacketTags.EXPORTABLE);
    return !((Exportable) p).isExportable();
}