public class EncryptionOptions extends Object
EncryptionOptions
contains parameters to be initialized when encrypting a pdf document.
First set appropriate encryptionType for encrypting with password or certificates.
For encrypting with password set passwordEncryptionOptionSpec .
For encrypting with certificate set pkiIdentities, certOptionSpec, credentialAlias and resourceResolver.Modifier and Type | Method and Description |
---|---|
CertificateEncryptionOptionSpec |
getCertOptionSpec() |
DocAssuranceServiceOperationTypes |
getEncryptionType() |
static EncryptionOptions |
getInstance() |
PasswordEncryptionOptionSpec |
getPasswordEncryptionOptionSpec() |
List<CertificateEncryptionIdentity> |
getPkiIdentities() |
org.apache.sling.api.resource.ResourceResolver |
getResourceResolver() |
void |
setCertOptionSpec(CertificateEncryptionOptionSpec certOptionSpec) |
void |
setEncryptionType(DocAssuranceServiceOperationTypes encryptionType) |
void |
setPasswordEncryptionOptionSpec(PasswordEncryptionOptionSpec passwordEncryptionOptionSpec) |
void |
setPkiIdentities(List<CertificateEncryptionIdentity> pkiIdentities) |
void |
setResourceResolver(org.apache.sling.api.resource.ResourceResolver resourceResolver) |
public static EncryptionOptions getInstance()
public DocAssuranceServiceOperationTypes getEncryptionType()
public void setEncryptionType(DocAssuranceServiceOperationTypes encryptionType)
encryptionType
- select from DocAssuranceServiceOperationTypes
, if Encryption Type
is password or certificate encryptionpublic PasswordEncryptionOptionSpec getPasswordEncryptionOptionSpec()
public void setPasswordEncryptionOptionSpec(PasswordEncryptionOptionSpec passwordEncryptionOptionSpec)
passwordEncryptionOptionSpec
- provide PasswordEncryptionOptionSpec
for password encryptionpublic List<CertificateEncryptionIdentity> getPkiIdentities()
public void setPkiIdentities(List<CertificateEncryptionIdentity> pkiIdentities)
pkiIdentities
- provide CertificateEncryptionIdentity
for certificate encryptionpublic CertificateEncryptionOptionSpec getCertOptionSpec()
public void setCertOptionSpec(CertificateEncryptionOptionSpec certOptionSpec)
certOptionSpec
- CertificateEncryptionOptionSpec
for certificate encryptionpublic org.apache.sling.api.resource.ResourceResolver getResourceResolver()
public void setResourceResolver(org.apache.sling.api.resource.ResourceResolver resourceResolver)
resourceResolver
- ResourceResolver
to the user's Key Store for certificate encryptionCopyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.