Example usage for org.bouncycastle.bcpg SignatureSubpacketTags NOTATION_DATA

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

Introduction

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

Prototype

int NOTATION_DATA

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

Click Source Link

Usage

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

License:Open Source License

public HashMap<String, String> getNotation() {
    HashMap<String, String> result = new HashMap<>();

    // If there is any notation data
    if (mSig.getHashedSubPackets() != null
            && mSig.getHashedSubPackets().hasSubpacket(SignatureSubpacketTags.NOTATION_DATA)) {
        // Iterate over notation data
        for (NotationData data : mSig.getHashedSubPackets().getNotationDataOccurrences()) {
            result.put(data.getNotationName(), data.getNotationValue());
        }//from   w w w.  j  ava 2s.c o  m
    }

    return result;
}