Package net.webpdf.wsclient.openapi
Class OperationPrivateKeyFileData
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationPrivateKeyFileData
-
public class OperationPrivateKeyFileData extends Object
Allows the private key to be passed (as a PEM file), for decryption of an asymmetrically encrypted document. The transfer of multiple private keys or other structures is not provided for at this point; exactly one private key is expected for decrypting the document. The rights recipient must already be assigned to the document when the document is encrypted. The certificate and private key must therefore be selected in such a way that they map a rights recipient who was entered in this document when it was encrypted.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationPrivateKeyFileData.SourceEnumSelects the data source for the hereby expressed resource.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PASSWORDstatic StringJSON_PROPERTY_SOURCEstatic StringJSON_PROPERTY_URIstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description OperationPrivateKeyFileData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@Nullable StringgetPassword()If the private key itself is encrypted (recommended), this password allows read access to the key to make it available for decrypting the document.@Nullable OperationPrivateKeyFileData.SourceEnumgetSource()Selects the data source for the hereby expressed resource.@Nullable StringgetUri()The uri the data shall be located at.@Nullable StringgetValue()Get valueinthashCode()OperationPrivateKeyFileDatapassword(String password)voidsetPassword(String password)voidsetSource(OperationPrivateKeyFileData.SourceEnum source)voidsetUri(String uri)voidsetValue(String value)OperationPrivateKeyFileDatasource(OperationPrivateKeyFileData.SourceEnum source)StringtoString()OperationPrivateKeyFileDatauri(String uri)OperationPrivateKeyFileDatavalue(String value)
-
-
-
Field Detail
-
JSON_PROPERTY_PASSWORD
public static final String JSON_PROPERTY_PASSWORD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE
public static final String JSON_PROPERTY_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_URI
public static final String JSON_PROPERTY_URI
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
password
public OperationPrivateKeyFileData password(String password)
-
getPassword
@Nullable public @Nullable String getPassword()
If the private key itself is encrypted (recommended), this password allows read access to the key to make it available for decrypting the document.- Returns:
- password
-
setPassword
public void setPassword(String password)
-
source
public OperationPrivateKeyFileData source(OperationPrivateKeyFileData.SourceEnum source)
-
getSource
@Nullable public @Nullable OperationPrivateKeyFileData.SourceEnum getSource()
Selects the data source for the hereby expressed resource. Possible values are: * value = The element's value shall contain the BASE64 encoded data. * uri = The data shall be located at the given uri.- Returns:
- source
-
setSource
public void setSource(OperationPrivateKeyFileData.SourceEnum source)
-
uri
public OperationPrivateKeyFileData uri(String uri)
-
getUri
@Nullable public @Nullable String getUri()
The uri the data shall be located at. (This shall only have effect, if the \"source\" is \"uri\".)- Returns:
- uri
-
setUri
public void setUri(String uri)
-
value
public OperationPrivateKeyFileData value(String value)
-
getValue
@Nullable public @Nullable String getValue()
Get value- Returns:
- value
-
setValue
public void setValue(String value)
-
-