Package net.webpdf.wsclient.openapi
Class OperationPdfPassword
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationPdfPassword
-
public class OperationPdfPassword extends Object
The `password` element can be used to set the user and owner passwords or certificates for the PDF document which are needed if the PDF document is protected. For example, if a protected PDF document is to be edited with the web service, then these settings can be used to provide the password or certificates for access.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_KEY_PAIRstatic StringJSON_PROPERTY_OPENstatic StringJSON_PROPERTY_PERMISSION
-
Constructor Summary
Constructors Constructor Description OperationPdfPassword()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@Nullable OperationKeyPairgetKeyPair()Get keyPair@Nullable StringgetOpen()A password that is required to open the document.@Nullable StringgetPermission()A password that allows \"editing access\" to the document.inthashCode()OperationPdfPasswordkeyPair(OperationKeyPair keyPair)OperationPdfPasswordopen(String open)OperationPdfPasswordpermission(String permission)voidsetKeyPair(OperationKeyPair keyPair)voidsetOpen(String open)voidsetPermission(String permission)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_KEY_PAIR
public static final String JSON_PROPERTY_KEY_PAIR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPEN
public static final String JSON_PROPERTY_OPEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PERMISSION
public static final String JSON_PROPERTY_PERMISSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
keyPair
public OperationPdfPassword keyPair(OperationKeyPair keyPair)
-
getKeyPair
@Nullable public @Nullable OperationKeyPair getKeyPair()
Get keyPair- Returns:
- keyPair
-
setKeyPair
public void setKeyPair(OperationKeyPair keyPair)
-
open
public OperationPdfPassword open(String open)
-
getOpen
@Nullable public @Nullable String getOpen()
A password that is required to open the document. If the provided PDF document is protected in such a way that a password (user password) is required to read the document, the corresponding password must also be passed. Without this password it is not possible to edit the document with the web service, because it cannot be read.- Returns:
- open
-
setOpen
public void setOpen(String open)
-
permission
public OperationPdfPassword permission(String permission)
-
getPermission
@Nullable public @Nullable String getPermission()
A password that allows \"editing access\" to the document. If the provided PDF document is password protected and the web service operation is to edit the document, then the appropriate password (owner password) must be provided to unlock the document.- Returns:
- permission
-
setPermission
public void setPermission(String permission)
-
-