Module: JWE::Enc::AesCbcHs::ClassMethods

Defined in:
lib/jwe/enc/aes_cbc_hs.rb

Overview

Provides availability checks for Key Encryption algorithms

Instance Method Summary collapse

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)

86
87
88
89
90
91
# File 'lib/jwe/enc/aes_cbc_hs.rb', line 86

def available?
  new.cipher
  true
rescue JWE::NotImplementedError
  false
end