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

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

Introduction

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

Prototype

public String getNotationName() 

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   ww w . j a v a  2s  .c o  m*/
    }

    return result;
}