Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.encryption

public Class SecurityProvider

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.Provider, org.bouncycastle.jce.provider.BouncyCastleProvider

Singleton which provides a security provider.

Field Summary

Modifier and TypeField and Description
private static Provider

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Provider

Returns:

the security provider
getProvider
()

Returns the provider to be used for advanced encrypting/decrypting.

public static void
setProvider(Provider
the security provider
provider
)

Set the provider to be used for advanced encrypting/decrypting.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

providerback to summary
private static Provider provider

Constructor Detail

SecurityProviderback to summary
private SecurityProvider()

Method Detail

getProviderback to summary
public static Provider getProvider() throws IOException

Returns the provider to be used for advanced encrypting/decrypting. Default is the BouncyCastleProvider.

Returns:Provider

the security provider

Exceptions
IOException:
if the default provider can't be instantiated
setProviderback to summary
public static void setProvider(Provider provider)

Set the provider to be used for advanced encrypting/decrypting.

Parameters
provider:Provider

the security provider