toSymmetricEncryptionAlgorithm

fun toSymmetricEncryptionAlgorithm(): SymmetricEncryptionAlgorithm<*, *, *>?

Maps this JweAlgorithm to the corresponding SymmetricEncryptionAlgorithm, if such a mapping exists. Mappings exist for the following Algorithms (as others are not direct mappings of symmetric algorithms):

  • SymmetricEncryptionAlgorithm.AES.GCM

  • SymmetricEncryptionAlgorithm.AES.WRAP

Return

null if no mapping exists