use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class PDPropBuild method getApp.
/**
* A build data dictionary for the viewing application software
* module that was used to create the parent signature.
*
* @return the App as PDPropBuildApp object
*/
public PDPropBuildDataDict getApp() {
PDPropBuildDataDict app = null;
COSDictionary appDic = dictionary.getCOSDictionary(COSName.APP);
if (appDic != null) {
app = new PDPropBuildDataDict(appDic);
}
return app;
}
use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class PDPropBuild method getFilter.
/**
* A build data dictionary for the signature handler that was
* used to create the parent signature.
*
* @return the Filter as PDPropBuildFilter object
*/
public PDPropBuildDataDict getFilter() {
PDPropBuildDataDict filter = null;
COSDictionary filterDic = dictionary.getCOSDictionary(COSName.FILTER);
if (filterDic != null) {
filter = new PDPropBuildDataDict(filterDic);
}
return filter;
}
use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class PDSeedValueCertificate method getSubjectDN.
/**
* Returns list of maps that contains subject distinguished names like [(cn: John Doe, o: Doe), (cn: John Smith)]
* both keys are typically of the form 'cn', 'o', 'email', '2.5.4.43'; and values are text strings.
*
* @return a list of maps containing the subject distinguished names
*/
public List<Map<String, String>> getSubjectDN() {
COSBase base = this.dictionary.getDictionaryObject(COSName.SUBJECT_DN);
if (base instanceof COSArray) {
COSArray cosArray = (COSArray) base;
List subjectDNList = cosArray.toList();
List<Map<String, String>> result = new LinkedList<Map<String, String>>();
for (Object subjectDNItem : subjectDNList) {
if (subjectDNItem instanceof COSDictionary) {
COSDictionary subjectDNItemDict = (COSDictionary) subjectDNItem;
Map<String, String> subjectDNMap = new HashMap<String, String>();
for (COSName key : subjectDNItemDict.keySet()) {
subjectDNMap.put(key.getName(), subjectDNItemDict.getString(key));
}
result.add(subjectDNMap);
}
}
return result;
}
return null;
}
use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class PDSignature method getPropBuild.
/**
* PDF signature build dictionary. Provides information about the signature handler.
*
* @return the pdf signature build dictionary.
*/
public PDPropBuild getPropBuild() {
PDPropBuild propBuild = null;
COSDictionary propBuildDic = dictionary.getCOSDictionary(COSName.PROP_BUILD);
if (propBuildDic != null) {
propBuild = new PDPropBuild(propBuildDic);
}
return propBuild;
}
use of com.tom_roush.pdfbox.cos.COSDictionary in project PdfBox-Android by TomRoush.
the class PDAnnotationAdditionalActions method getU.
/**
* This will get an action to be performed when the mouse button
* is released inside the annotation's active area.
* The name U stands for "up".
*
* @return The U entry of annotation's additional actions dictionary.
*/
public PDAction getU() {
COSDictionary u = (COSDictionary) actions.getDictionaryObject("U");
PDAction retval = null;
if (u != null) {
retval = PDActionFactory.createAction(u);
}
return retval;
}
Aggregations