You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Authentication/Util/JWE/JWEUtility.php
+39
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,11 @@
20
20
class JWEUtility {
21
21
privatestatic$cache = null;
22
22
23
+
/**
24
+
* @deprecated This method has been marked as Deprecated and will be removed in coming releases.
25
+
*/
23
26
privatestaticfunctionloadKeyFromPEMFile($path) {
27
+
trigger_error("This method has been marked as Deprecated and will be removed in coming releases.", E_USER_DEPRECATED);
24
28
return JWKFactory::createFromKeyFile(
25
29
$path,
26
30
'', // Secret if the key is encrypted
@@ -30,7 +34,11 @@ private static function loadKeyFromPEMFile($path) {
30
34
);
31
35
}
32
36
37
+
/**
38
+
* @deprecated This method has been marked as Deprecated and will be removed in coming releases. Use decryptJWEUsingPrivateKey(\$privateKey, \$encodedResponse) instead.
trigger_error("This method has been marked as Deprecated and will be removed in coming releases. Use decryptJWEUsingPrivateKey(\$privateKey, \$encodedResponse) instead.", E_USER_DEPRECATED);
34
42
if (!isset(self::$cache)) {
35
43
self::$cache = newCache();
36
44
}
@@ -77,6 +85,37 @@ public static function decryptJWEUsingPEM(MerchantConfiguration $merchantConfig,
Copy file name to clipboardExpand all lines: lib/Utilities/JWEResponse/JWEUtility.php
+6-1
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,14 @@
8
8
class JWEUtility {
9
9
10
10
/**
11
-
* @throws Exception
11
+
* @deprecated This method has been marked as Deprecated and will be removed in coming releases. Use decryptJWEResponseUsingPrivateKey(\$privateKey, \$encodedResponse) instead.
trigger_error("This method has been marked as Deprecated and will be removed in coming releases. Use Use decryptJWEResponseUsingPrivateKey(\$privateKey, \$encodedResponse) instead.", E_USER_DEPRECATED);
0 commit comments