Class Dictionary

java.lang.Object
se.swedenconnect.sigval.pdf.pdfstruct.Dictionary

public class Dictionary extends Object
Utility class for a PDF Dictionary used to compare and extract values from the Dictionary
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • Dictionary

      public Dictionary(org.apache.pdfbox.cos.COSDictionary dictionary)
      Constructor
      Parameters:
      dictionary - the dictionary object holding the dictionary data
  • Method Details

    • matches

      public boolean matches(Object matchDictionary)
      Compare this dictionary with the values of another dictionary
      Parameters:
      matchDictionary - the dictionary to match
      Returns:
      true on match
    • getValueByName

      public ObjectValue getValueByName(String name)
      Gets the value of an item inside this dictionary
      Parameters:
      name - the key used to locate the value
      Returns:
      the value under the specified key