Class Pkcs7Conversion
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.model.Pkcs7Conversion
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Pkcs7Conversion
extends Object
The keys a PKCS#7 → JOSE conversion use case binds. At least one of openerKid and signerKids is required; recipientKids requires openerKid and must not repeat it (400 naming recipientKids).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRecipientKidsItem(String recipientKidsItem) addSignerKidsItem(String signerKidsItem) booleanstatic Pkcs7ConversionCreate an instance of Pkcs7Conversion given an JSON stringStable KID of the EXISTING key that opens the EnvelopedData: the recipient whose key decrypts the content-encryption key.Stable KIDs of the EXISTING keys of the OTHER recipients the content is re-encrypted to.Stable KIDs of the EXISTING keys of the signers: the conversion verifies each CMS signature under the key and re-signs with it, so each must admit sign and verify.inthashCode()recipientKids(List<String> recipientKids) voidsetOpenerKid(String openerKid) voidsetRecipientKids(List<String> recipientKids) voidsetSignerKids(List<String> signerKids) signerKids(List<String> signerKids) toJson()Convert an instance of Pkcs7Conversion to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_OPENER_KID
- See Also:
-
SERIALIZED_NAME_RECIPIENT_KIDS
- See Also:
-
SERIALIZED_NAME_SIGNER_KIDS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Pkcs7Conversion
public Pkcs7Conversion()
-
-
Method Details
-
openerKid
-
getOpenerKid
Stable KID of the EXISTING key that opens the EnvelopedData: the recipient whose key decrypts the content-encryption key. It is also encrypted to in the JOSE output, so the key must admit both decrypt and encrypt (422 with the per-cause type otherwise). Omit it for a signers-only use case that converts SignedData.- Returns:
- openerKid
-
setOpenerKid
-
recipientKids
-
addRecipientKidsItem
-
getRecipientKids
Stable KIDs of the EXISTING keys of the OTHER recipients the content is re-encrypted to. Each must admit encrypt. Empty or omitted when the opener is the sole recipient. Requires openerKid, and must not list it.- Returns:
- recipientKids
-
setRecipientKids
-
signerKids
-
addSignerKidsItem
-
getSignerKids
Stable KIDs of the EXISTING keys of the signers: the conversion verifies each CMS signature under the key and re-signs with it, so each must admit sign and verify.- Returns:
- signerKids
-
setSignerKids
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Pkcs7Conversion
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a Pkcs7Conversion
-
fromJson
Create an instance of Pkcs7Conversion given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Pkcs7Conversion
- Throws:
IOException- if the JSON string is invalid with respect to Pkcs7Conversion
-
toJson
Convert an instance of Pkcs7Conversion to an JSON string- Returns:
- JSON string
-