mergeWith
Merges this BaseJwsProcessor with other, producing a combined JwsProcessor that supports both signing and verification.
Returns this unchanged when other is null. The two processors must share the same BaseJwsProcessor.algorithm, be of different runtime types, and neither may already be a full JwsProcessor. Merging a JwsSigner with a JwsVerifier (or vice versa) yields a JwsProcessor via JwsProcessor.combining.
Return
the merged JwsProcessor, or this if other is null
Parameters
the complementary processor to merge with, or null to skip merging
Throws
if the algorithms differ, the types are the same, or either processor already implements both operations
Merges this BaseJweProcessor with other, producing a combined JweProcessor that supports both encryption and decryption.
Returns this unchanged when other is null. The two processors must share the same BaseJweProcessor.algorithm, be of different runtime types, and neither may already be a full JweProcessor. Merging a JweEncryptor with a JweDecryptor (or vice versa) yields a JweProcessor via JweProcessor.combining.
Return
the merged JweProcessor, or this if other is null
Parameters
the complementary processor to merge with, or null to skip merging
Throws
if the algorithms differ, the types are the same, or either processor already implements both operations