Missing access in JWEHeader
Issue #238
invalid
in the JWEHeader class I cannot access the content-encryption algorithm. I need to workaround here by translating the object into a JSONObject and then get the enc-value. I want to access this value because I want to check if the encryption algorithm is in the scope of the algorithms that my application is supporting. My application is not supporting all of the algorithms provided by nimbus.
Comments (2)
-
-
- changed status to invalid
Looking at the screenshot, you were inspecting the base
com.nimbusds.jose.Header
object. Theenc
is a field of theJWEHeader
class, and thegetEncryptionMethod
will give you access to it.The method name reflects an early draft where in the terminology section the content encryption algorithm used to be called encryption method.
- Log in to comment
Do you mean the "enc" JWE header parameter?
The method to access it is
getEncryptionMethod
:http://static.javadoc.io/com.nimbusds/nimbus-jose-jwt/5.1/com/nimbusds/jose/JWEHeader.html#getEncryptionMethod--