Class SecurityProvider
java.lang.Object
org.apache.pdfbox.pdmodel.encryption.SecurityProvider
Singleton which provides a security provider.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Provider
Returns the provider to be used for advanced encrypting/decrypting.static void
setProvider
(Provider provider) Set the provider to be used for advanced encrypting/decrypting.
-
Field Details
-
provider
-
-
Constructor Details
-
SecurityProvider
private SecurityProvider()
-
-
Method Details
-
getProvider
Returns the provider to be used for advanced encrypting/decrypting. Default is the BouncyCastleProvider.- Returns:
- the security provider
- Throws:
IOException
- if the default provider can't be instantiated
-
setProvider
Set the provider to be used for advanced encrypting/decrypting.- Parameters:
provider
- the security provider
-