Example usage for org.bouncycastle.bcpg SignatureSubpacketTags REVOCABLE

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

Introduction

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

Prototype

int REVOCABLE

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

Click Source Link

Usage

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

License:Open Source License

/** Returns true if this certificate is revocable in general. */
public boolean isRevokable() {
    // If nothing is specified, the packet is considered revocable
    if (mSig.getHashedSubPackets() == null
            || !mSig.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.REVOCABLE)) {
        return true;
    }// www .j  a v  a  2s  .  c o m
    SignatureSubpacket p = mSig.getHashedSubPackets().getSubpacket(SignatureSubpacketTags.REVOCABLE);
    return ((Revocable) p).isRevocable();
}