com.adobe.livecycle.encryption.client
Class CertificateEncryptionIdentity

java.lang.Object
  extended by com.adobe.livecycle.encryption.client.CertificateEncryptionIdentity
All Implemented Interfaces:
java.io.Serializable

public class CertificateEncryptionIdentity
extends java.lang.Object
implements java.io.Serializable

Enables the creation of a Java object that specifies permissions that apply to an encrypted PDF document and the certificate that is used to encrypt the document. That is, when encrypting a PDF document with a certificate, you create an object of this type and set permission and certificate information.

Certificate information is set by creating a Recipient object, invoking its setX509Cert method and passing the Recipient object to this object's setRecipient method. For information about encrypting a PDF document with a certificate, see the Encrypting PDF Documents with Certificates section in Programming with Adobe Experience Manager forms.

See Also:
Serialized Form

Constructor Summary
CertificateEncryptionIdentity()
          A standard constructor that creates a CertificateEncryptionIdentity object.
 
Method Summary
 java.util.List getPerms()
          Returns a list of permissions that are associated with this object.
 Recipient getRecipient()
          Retrieves the recipient that is associated with this object.
 void setPerms(java.util.List perms)
          Sets the permissions to add a certificate-encryted PDF document.
 void setRecipient(Recipient recipient)
          Sets the recipient that is associated with this object.
 java.lang.String toString()
          Converts this object to a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CertificateEncryptionIdentity

public CertificateEncryptionIdentity()
A standard constructor that creates a CertificateEncryptionIdentity object.

Method Detail

getPerms

public java.util.List getPerms()
Returns a list of permissions that are associated with this object.

Returns:
A java.util.List object that contains a list of permissions. Each element is a CertificateEncryptionPermissions enumeration value.

setPerms

public void setPerms(java.util.List perms)
Sets the permissions to add a certificate-encryted PDF document.

To see this method used in a code example, see the Encrypting a PDF document with a certificate using the Java API quick start in Programming with Adobe Experience Manager forms.

Parameters:
perms - A java.util.List object that contains a list of permissions. Each element is a CertificateEncryptionPermissions enumeration value.

toString

public java.lang.String toString()
Converts this object to a string.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.

getRecipient

public Recipient getRecipient()
Retrieves the recipient that is associated with this object.

Returns:
A Recipient object that represents the recipient.

setRecipient

public void setRecipient(Recipient recipient)
Sets the recipient that is associated with this object.

To see this method in a code example, see the Encrypting a PDF document with a certificate using the Java API quick start in the Programming with Adobe Experience Manager forms.

Parameters:
recipient - A Recipient object that represents the recipient.