Package net.webpdf.wsclient.openapi
Class OperationKeyPair
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationKeyPair
-
public class OperationKeyPair extends Object
Allows the private key for decrypting an asymmetrically encrypted document to be handed over and the associated rights holder (recipient) to be selected by means of the certificate assigned to him. The document can only be decrypted if both are present and the private key and certificate both match and are intended for decrypting the document. When encrypting the document, it is possible to define multiple rights holders, but when decrypting the document as configured here, only a single one of these rights holders can be selected for which the decryption is to be performed.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CERTIFICATEstatic StringJSON_PROPERTY_PRIVATE_KEY
-
Constructor Summary
Constructors Constructor Description OperationKeyPair()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationKeyPaircertificate(OperationCertificateFileData certificate)booleanequals(Object o)@NotNull OperationCertificateFileDatagetCertificate()Get certificate@NotNull OperationPrivateKeyFileDatagetPrivateKey()Get privateKeyinthashCode()OperationKeyPairprivateKey(OperationPrivateKeyFileData privateKey)voidsetCertificate(OperationCertificateFileData certificate)voidsetPrivateKey(OperationPrivateKeyFileData privateKey)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CERTIFICATE
public static final String JSON_PROPERTY_CERTIFICATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRIVATE_KEY
public static final String JSON_PROPERTY_PRIVATE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
certificate
public OperationKeyPair certificate(OperationCertificateFileData certificate)
-
getCertificate
@NotNull public @NotNull OperationCertificateFileData getCertificate()
Get certificate- Returns:
- certificate
-
setCertificate
public void setCertificate(OperationCertificateFileData certificate)
-
privateKey
public OperationKeyPair privateKey(OperationPrivateKeyFileData privateKey)
-
getPrivateKey
@NotNull public @NotNull OperationPrivateKeyFileData getPrivateKey()
Get privateKey- Returns:
- privateKey
-
setPrivateKey
public void setPrivateKey(OperationPrivateKeyFileData privateKey)
-
-