Example usage for org.bouncycastle.bcpg.sig NotationData getNotationValue

List of usage examples for org.bouncycastle.bcpg.sig NotationData getNotationValue

Introduction

In this page you can find the example usage for org.bouncycastle.bcpg.sig NotationData getNotationValue.

Prototype

public String getNotationValue() 

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 2  s  .co m*/
    }

    return result;
}