Module: JWE::Enc::AesGcm::ClassMethods

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

Overview

Provides availability checks for Key Encryption algorithms

Instance Method Summary collapse

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)

65
66
67
68
69
70
# File 'lib/jwe/enc/aes_gcm.rb', line 65

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