Class: AuthJWEUtility
- Inherits:
-
Object
- Object
- AuthJWEUtility
- Defined in:
- lib/AuthenticationSDK/util/JWEUtility.rb
Class Method Summary collapse
-
.decrypt_jwe_using_pem(merchant_config, encoded_response) ⇒ Object
DEPRECATED: This method has been marked as Deprecated and will be removed in coming releases.
- .decrypt_jwe_using_private_key(private_key, encoded_response) ⇒ Object
Class Method Details
.decrypt_jwe_using_pem(merchant_config, encoded_response) ⇒ Object
DEPRECATED: This method has been marked as Deprecated and will be removed in coming releases. Use decrypt_jwe_using_private_key()
instead.
9 10 11 12 13 |
# File 'lib/AuthenticationSDK/util/JWEUtility.rb', line 9 def self.decrypt_jwe_using_pem(merchant_config, encoded_response) warn("[DEPRECATED] `decrypt_jwe_using_pem()` method is deprecated and will be removed in coming releases. Use `decrypt_jwe_using_private_key()` instead.") key = Cache.new.fetchPEMFileForNetworkTokenization(merchant_config.pemFileDirectory) return JOSE::JWE.block_decrypt(key, encoded_response).first end |
.decrypt_jwe_using_private_key(private_key, encoded_response) ⇒ Object
15 16 17 |
# File 'lib/AuthenticationSDK/util/JWEUtility.rb', line 15 def self.decrypt_jwe_using_private_key(private_key, encoded_response) return JOSE::JWE.block_decrypt(private_key, encoded_response).first end |