Class Configuration.SecuritySettings

java.lang.Object
com.realobjects.pdfreactor.Configuration.SecuritySettings
Enclosing class:
Configuration

public static final class Configuration.SecuritySettings extends Object

A type containing security settings.

  • Method Details

    • setAllowRedirects

      public Configuration.SecuritySettings setAllowRedirects(Boolean allowRedirects)

      Whether to allow automatic URL redirects when PDFreactor receives appropriate status codes.

    • setTrustAllConnectionCertificates

      public Configuration.SecuritySettings setTrustAllConnectionCertificates(Boolean trustAllConnectionCertificates)

      Whether to trust all certificates during HTTPS connections. This setting disables certificate validation and should only be used if you experience any HTTPS certificate issues which usually occur when using invalid or self-signed certificates.

    • setAllowExternalXmlParserResources

      public Configuration.SecuritySettings setAllowExternalXmlParserResources(Boolean allowExternalXmlParserResources)

      Specifies whether the XML parser will process external XML resources during parsing, e.g. DTDs, entities, XInlcudes.

      This does not affect HTML5 document processing.

    • setUntrustedApi

      public Configuration.SecuritySettings setUntrustedApi(Boolean untrustedApi)

      Specifies whether the PDFreactor configuration object is considered an untrusted context for the purpose of security. If it is a trusted context, URLs that are specified in the configuration object are not vetted against the security settings and are always allowed. If it is not trusted, the same security settings that are used for document resources apply to all configuration resources (including the document) as well.

    • setHideVersionInfo

      public Configuration.SecuritySettings setHideVersionInfo(Boolean hideVersionInfo)

      Specifies whether PDFreactor will not disclose any version information, e.g. in the PDF metadata.

    • setConnectionRules

      public Configuration.SecuritySettings setConnectionRules(Configuration.ConnectionRule... rules)

      A list of rules that PDFreactor evaluates and then either denies or allows connections to a particular resource.

    • setDefaults

      An object of security default behavior which is used for any URLs that do not match any rules.

    • setAllowNonLocalFileUrls

      public Configuration.SecuritySettings setAllowNonLocalFileUrls(Boolean allowNonLocalFileUrls)

      Whether to allow file URLs to non-local hosts. If not enabled, PDFreactor considers all file URLs invalid that have a non-empty authority component other than exactly "localhost".

    • setAllowAuthorApiOverrides

      public Configuration.SecuritySettings setAllowAuthorApiOverrides(Boolean allowAuthorApiOverrides)

      Whether to allow authors to override API settings, e.g. by using document JavaScript.