Class Security_Api
- java.lang.Object
-
- com.ironsoftware.ironpdf.internal.staticapi.Security_Api
-
public final class Security_Api extends Object
The type Security api.
-
-
Constructor Summary
Constructors Constructor Description Security_Api()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecurityOptions
getPdfSecurityOptions(InternalPdfDocument internalPdfDocument)
Get PDF security settingsstatic void
makePdfDocumentReadOnly(InternalPdfDocument internalPdfDocument, String ownerPassword)
Makes this PDF document read only such that:static void
removePasswordsAndEncryption(InternalPdfDocument internalPdfDocument)
Removes all user and owner password security for a PDF document.static void
setPdfSecuritySettings(InternalPdfDocument internalPdfDocument, SecurityOptions securityOptions)
Set PDF security settings
-
-
-
Method Detail
-
removePasswordsAndEncryption
public static void removePasswordsAndEncryption(InternalPdfDocument internalPdfDocument)
Removes all user and owner password security for a PDF document. Also disables content encryption.Content is encrypted at 128 bit. Copy and paste of content is disallowed. Annotations and form editing are disabled.
- Parameters:
internalPdfDocument
- the internal pdf document
-
getPdfSecurityOptions
public static SecurityOptions getPdfSecurityOptions(InternalPdfDocument internalPdfDocument)
Get PDF security settings.
- Parameters:
internalPdfDocument
- the internal pdf document- Returns:
- PdfSecuritySettings pdf security options
-
makePdfDocumentReadOnly
public static void makePdfDocumentReadOnly(InternalPdfDocument internalPdfDocument, String ownerPassword)
Makes this PDF document read only such that:Content is encrypted at 128 bit. Copy and paste of content is disallowed. Annotations and form editing are disabled.
.
- Parameters:
internalPdfDocument
- the internal pdf documentownerPassword
- The owner password for the PDF. A string for owner password is required to enable PDF encryption and all document security options.
-
setPdfSecuritySettings
public static void setPdfSecuritySettings(InternalPdfDocument internalPdfDocument, SecurityOptions securityOptions)
Set PDF security settings.
- Parameters:
internalPdfDocument
- the internal pdf documentsecurityOptions
- ASecurityOptions
object.
-
-