/** * <p>(Optional; PDF 1.5) A seed value dictionary containing information * that constrains the properties of a signature that is applied to the * field.</p> * * @return the seed value dictionary as PDSeedValue */ public PDSeedValue getSeedValue() { COSDictionary dict = (COSDictionary) getCOSObject().getDictionaryObject(COSName.SV); PDSeedValue sv = null; if (dict != null) { sv = new PDSeedValue(dict); } return sv; }
/** * set true if the V entry shall be required. * * @param flag if true, the V entry shall be used. */ public void setVRequired(boolean flag) { getCOSObject().setFlag( COSName.FF, FLAG_V, flag); }
/** * (Optional) An array of text strings that specifying possible reasons for signing * a document. If specified, the reasons supplied in this entry replace those used * by conforming products. * * @param reasons is a list of possible text string that specifying possible reasons * * @deprecated use {@link #setReasons(java.util.List) } */ @Deprecated public void setReasonsd(List<String> reasons) { setReasons(reasons); }
/** * * @return true if the Reason is required */ public boolean isReasonRequired() { return getCOSObject().getFlag( COSName.FF, FLAG_REASON); }
/** * <p>(Optional; PDF 1.5) A seed value dictionary containing information * that constrains the properties of a signature that is applied to the * field.</p> * * @return the seed value dictionary as PDSeedValue */ public PDSeedValue getSeedValue() { COSDictionary dict = (COSDictionary) getCOSObject().getDictionaryObject(COSName.SV); PDSeedValue sv = null; if (dict != null) { sv = new PDSeedValue(dict); } return sv; }
/** * set true if the AddRevInfo shall be required. * * @param flag if true, the AddRevInfo shall be used. */ public void setAddRevInfoRequired(boolean flag) { getCOSObject().setFlag( COSName.FF, FLAG_ADD_REV_INFO, flag); }
/** * <p>(Optional; PDF 1.5) A seed value dictionary containing information * that constrains the properties of a signature that is applied to the * field.</p> * * @return the seed value dictionary as PDSeedValue */ public PDSeedValue getSeedValue() { COSDictionary dict = (COSDictionary) getCOSObject().getDictionaryObject(COSName.SV); PDSeedValue sv = null; if (dict != null) { sv = new PDSeedValue(dict); } return sv; }
/** * set true if the filter shall be required. * * @param flag if true, the specified Filter shall be used when signing. */ public void setFilterRequired(boolean flag) { getCOSObject().setFlag( COSName.FF, FLAG_FILTER, flag); }
/** * set true if the subfilter shall be required. * * @param flag if true, the first supported SubFilter in the array shall be used when signing. */ public void setSubFilterRequired(boolean flag) { getCOSObject().setFlag( COSName.FF, FLAG_SUBFILTER, flag); }
/** * set true if the DigestMethod shall be required. * * @param flag if true, one digest from the array shall be used. */ public void setDigestMethodRequired(boolean flag) { getCOSObject().setFlag( COSName.FF, FLAG_DIGEST_METHOD, flag); }
/** * * @return true if the V entry is required */ public boolean isVRequired() { return getCOSObject().getFlag( COSName.FF, FLAG_V); }
/** * set true if the LegalAttestation shall be required. * * @param flag if true, the LegalAttestation entry shall be used. */ public void setLegalAttestationRequired(boolean flag) { getCOSObject().setFlag( COSName.FF, FLAG_LEGAL_ATTESTATION, flag); }
/** * * @return true if the AddRevInfo is required */ public boolean isAddRevInfoRequired() { return getCOSObject().getFlag( COSName.FF, FLAG_ADD_REV_INFO); }
/** * * @return true if the Filter is required */ public boolean isFilterRequired() { return getCOSObject().getFlag( COSName.FF, FLAG_FILTER); }
/** * * @return true if the SubFilter is required */ public boolean isSubFilterRequired() { return getCOSObject().getFlag( COSName.FF, FLAG_SUBFILTER); }
/** * set true if the Reason shall be required. * * @param flag if true, the Reason entry shall be used. */ public void setReasonRequired(boolean flag) { getCOSObject().setFlag( COSName.FF, FLAG_REASON, flag); }
/** * * @return true if the LegalAttestation is required */ public boolean isLegalAttestationRequired() { return getCOSObject().getFlag( COSName.FF, FLAG_LEGAL_ATTESTATION); }
/** * * @return true if the DigestMethod is required */ public boolean isDigestMethodRequired() { return getCOSObject().getFlag( COSName.FF, FLAG_DIGEST_METHOD); }
/** * set true if the filter shall be required. * * @param flag if true, the specified Filter shall be used when signing. */ public void setFilterRequired(boolean flag) { getCOSObject().setFlag( COSName.FF, FLAG_FILTER, flag); }
/** * * @return true if the AddRevInfo is required */ public boolean isAddRevInfoRequired() { return getCOSObject().getFlag( COSName.FF, FLAG_ADD_REV_INFO); }