Package com.pd4ml.pdf.encryption
Class SecurityProvider
- java.lang.Object
-
- com.pd4ml.pdf.encryption.SecurityProvider
-
public class SecurityProvider extends java.lang.Object
Singleton which provides a security provider.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.Provider
getProvider()
Returns the provider to be used for advanced encrypting/decrypting.static void
setProvider(java.security.Provider provider)
Set the provider to be used for advanced encrypting/decrypting.
-
-
-
Method Detail
-
getProvider
public static java.security.Provider getProvider() throws java.io.IOException
Returns the provider to be used for advanced encrypting/decrypting. Default is the BouncyCastleProvider.- Returns:
- the security provider
- Throws:
java.io.IOException
- if the default provider can't be instantiated
-
setProvider
public static void setProvider(java.security.Provider provider)
Set the provider to be used for advanced encrypting/decrypting.- Parameters:
provider
- the security provider
-
-