Class PublicKeyRecipient
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.encryption.PublicKeyRecipient
-
public class PublicKeyRecipient extends Object
Represents a recipient in the public key protection policy.- See Also:
PublicKeyProtectionPolicy
-
-
Constructor Summary
Constructors Constructor Description PublicKeyRecipient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessPermissiongetPermission()Returns the access permission granted to the recipient.X509CertificategetX509()Returns the X509 certificate of the recipient.voidsetPermission(AccessPermission permissions)Set the access permission granted to the recipient.voidsetX509(X509Certificate aX509)Set the X509 certificate of the recipient.
-
-
-
Method Detail
-
getX509
public X509Certificate getX509()
Returns the X509 certificate of the recipient.- Returns:
- The X509 certificate
-
setX509
public void setX509(X509Certificate aX509)
Set the X509 certificate of the recipient.- Parameters:
aX509- The X509 certificate
-
getPermission
public AccessPermission getPermission()
Returns the access permission granted to the recipient.- Returns:
- The access permission object.
-
setPermission
public void setPermission(AccessPermission permissions)
Set the access permission granted to the recipient.- Parameters:
permissions- The permission to set.
-
-