/** * Get the value of the array as a string. * * @param index The index into the array. * @return The string or null if it does not exist. */ public String getString( int index ) { return getString( index, null ); }
/** * Get the lowest value for a key in the name map. * * @return The lowest value for a key in the map. */ public String getLowerLimit() { String retval = null; COSArray arr = (COSArray)node.getDictionaryObject( COSName.LIMITS ); if( arr != null ) { retval = arr.getString( 0 ); } return retval; }
/** * Get the highest value for a key in the name map. * * @return The highest value for a key in the map. */ public String getUpperLimit() { String retval = null; COSArray arr = (COSArray)node.getDictionaryObject( COSName.LIMITS ); if( arr != null ) { retval = arr.getString( 1 ); } return retval; }
/** * If the Reasons array is provided and {@link #isReasonRequired()} indicates that * Reasons is a required constraint, one of the reasons in the array shall be used * for the signature dictionary; otherwise signing shall not take place. If the * {@link #isReasonRequired()} indicates Reasons is an optional constraint, one of * the reasons in the array may be chose or a custom reason can be provided. * * @return the reasons that should be used by the signature handler */ public List<String> getReasons() { List<String> retval = null; COSArray fields = (COSArray)dictionary.getDictionaryObject(COSName.REASONS); if (fields != null) { List<String> actuals = new ArrayList<>(); for ( int i = 0; i < fields.size(); i++ ) { String element = fields.getString(i); if (element != null) { actuals.add(element); } } retval = new COSArrayList<>(actuals, fields); } return retval; }
/** * (Optional, PDF 1.6) An array of text strings that specifying possible legal * attestations. * * @return the reasons that should be used by the signature handler */ public List<String> getLegalAttestation() { List<String> retval = null; COSArray fields = (COSArray)dictionary.getDictionaryObject(COSName.LEGAL_ATTESTATION); if (fields != null) { List<String> actuals = new ArrayList<>(); for ( int i = 0; i < fields.size(); i++ ) { String element = fields.getString(i); if (element != null) { actuals.add(element); } } retval = new COSArrayList<>(actuals, fields); } return retval; }
/** * Get the value of the array as a string. * * @param index The index into the array. * @return The string or null if it does not exist. */ public String getString( int index ) { return getString( index, null ); }
/** * Get the value of the array as a string. * * @param index The index into the array. * @return The string or null if it does not exist. */ public String getString( int index ) { return getString( index, null ); }
for (int i = 0; i < afName.size(); ++i) FilterHelper.isAuthorizedFilter(context, afName.getString(i));
/** * Get the highest value for a key in the name map. * * @return The highest value for a key in the map. */ public String getUpperLimit() { String retval = null; COSArray arr = (COSArray)node.getDictionaryObject( COSName.LIMITS ); if( arr != null ) { retval = arr.getString( 1 ); } return retval; }
/** * Get the highest value for a key in the name map. * * @return The highest value for a key in the map. */ public String getUpperLimit() { String retval = null; COSArray arr = (COSArray)node.getDictionaryObject( COSName.LIMITS ); if( arr != null ) { retval = arr.getString( 1 ); } return retval; }
/** * Get the lowest value for a key in the name map. * * @return The lowest value for a key in the map. */ public String getLowerLimit() { String retval = null; COSArray arr = (COSArray)node.getDictionaryObject( COSName.LIMITS ); if( arr != null ) { retval = arr.getString( 0 ); } return retval; }
/** * Get the lowest value for a key in the name map. * * @return The lowest value for a key in the map. */ public String getLowerLimit() { String retval = null; COSArray arr = (COSArray)node.getDictionaryObject( COSName.LIMITS ); if( arr != null ) { retval = arr.getString( 0 ); } return retval; }
/** * (Optional, PDF 1.6) An array of text strings that specifying possible legal * attestations. * * @return the reasons that should be used by the signature handler */ public List<String> getLegalAttestation() { List<String> retval = null; COSArray fields = (COSArray)dictionary.getDictionaryObject(COSName.LEGAL_ATTESTATION); if (fields != null) { List<String> actuals = new ArrayList<String>(); for ( int i = 0; i < fields.size(); i++ ) { String element = fields.getString(i); if (element != null) { actuals.add(element); } } retval = new COSArrayList<String>(actuals, fields); } return retval; }
/** * (Optional, PDF 1.6) An array of text strings that specifying possible legal * attestations. * * @return the reasons that should be used by the signature handler */ public List<String> getLegalAttestation() { List<String> retval = null; COSArray fields = (COSArray)dictionary.getDictionaryObject(COSName.LEGAL_ATTESTATION); if (fields != null) { List<String> actuals = new ArrayList<>(); for ( int i = 0; i < fields.size(); i++ ) { String element = fields.getString(i); if (element != null) { actuals.add(element); } } retval = new COSArrayList<>(actuals, fields); } return retval; }
/** * If the Reasons array is provided and {@link #isReasonRequired()} indicates that * Reasons is a required constraint, one of the reasons in the array shall be used * for the signature dictionary; otherwise signing shall not take place. If the * {@link #isReasonRequired()} indicates Reasons is an optional constraint, one of * the reasons in the array may be chose or a custom reason can be provided. * * @return the reasons that should be used by the signature handler */ public List<String> getReasons() { List<String> retval = null; COSArray fields = (COSArray)dictionary.getDictionaryObject(COSName.REASONS); if (fields != null) { List<String> actuals = new ArrayList<String>(); for ( int i = 0; i < fields.size(); i++ ) { String element = fields.getString(i); if (element != null) { actuals.add(element); } } retval = new COSArrayList<String>(actuals, fields); } return retval; }
/** * If the Reasons array is provided and {@link #isReasonRequired()} indicates that * Reasons is a required constraint, one of the reasons in the array shall be used * for the signature dictionary; otherwise signing shall not take place. If the * {@link #isReasonRequired()} indicates Reasons is an optional constraint, one of * the reasons in the array may be chose or a custom reason can be provided. * * @return the reasons that should be used by the signature handler */ public List<String> getReasons() { List<String> retval = null; COSArray fields = (COSArray)dictionary.getDictionaryObject(COSName.REASONS); if (fields != null) { List<String> actuals = new ArrayList<>(); for ( int i = 0; i < fields.size(); i++ ) { String element = fields.getString(i); if (element != null) { actuals.add(element); } } retval = new COSArrayList<>(actuals, fields); } return retval; }
for (int i = 0; i < afName.size(); ++i) FilterHelper.isAuthorizedFilter(context, afName.getString(i));
for (int i = 0; i < afName.size(); ++i) FilterHelper.isAuthorizedFilter(context, afName.getString(i));