File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/test/java/com/mastercard/developer/encryption Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -96,4 +96,14 @@ public void testBuild_ShouldThrowIllegalArgumentException_WhenNotDefiniteEncrypt
9696 .withEncryptionCertificate (TestUtils .getTestEncryptionCertificate ())
9797 .build ();
9898 }
99+
100+ @ Test
101+ public void testBuild_ShouldNotComputeCertificateKeyFingerprint_WhenFingerprintSet () throws Exception {
102+ EncryptionConfig config = JweConfigBuilder .aJweEncryptionConfig ()
103+ .withEncryptionCertificate (TestUtils .getTestEncryptionCertificate ())
104+ .withDecryptionKey (TestUtils .getTestDecryptionKey ())
105+ .withEncryptionKeyFingerprint ("2f4lvi26vJWzkzAIaiR2G0YsJAQ=" )
106+ .build ();
107+ Assert .assertEquals ("2f4lvi26vJWzkzAIaiR2G0YsJAQ=" , config .getEncryptionKeyFingerprint ());
108+ }
99109}
You can’t perform that action at this time.
0 commit comments