List of usage examples for com.itextpdf.text.pdf PdfWriter STANDARD_ENCRYPTION_128
int STANDARD_ENCRYPTION_128
To view the source code for com.itextpdf.text.pdf PdfWriter STANDARD_ENCRYPTION_128.
Click Source Link
From source file:org.sejda.impl.itext5.util.EncryptionUtils.java
License:Open Source License
/** * Mapping between Sejda and iText encryption algorithms * /*from w ww. j av a 2s . c o m*/ * @param encryption * @return the iText encryption constant */ public static int getEncryptionAlgorithm(PdfEncryption encryption) { switch (encryption) { case AES_ENC_128: return PdfWriter.ENCRYPTION_AES_128; case STANDARD_ENC_128: return PdfWriter.STANDARD_ENCRYPTION_128; default: return PdfWriter.STANDARD_ENCRYPTION_40; } }