Method: JOSE::JWE::ALG_ECDH_ES#algorithm
- Defined in:
- lib/jose/jwe/alg_ecdh_es.rb
#algorithm ⇒ Object
API functions
143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/jose/jwe/alg_ecdh_es.rb', line 143 def algorithm case bits when nil return 'ECDH-ES' when 128 return 'ECDH-ES+A128KW' when 192 return 'ECDH-ES+A192KW' when 256 return 'ECDH-ES+A256KW' else raise ArgumentError, "unhandled JOSE::JWE::ALG_ECDH_ES bits: #{bits.inspect}" end end |