Class JWEAlgorithmConverter

java.lang.Object
io.micronaut.security.token.jwt.converters.JWEAlgorithmConverter
All Implemented Interfaces:
io.micronaut.core.convert.TypeConverter<CharSequence,com.nimbusds.jose.JWEAlgorithm>

@Singleton public class JWEAlgorithmConverter extends Object implements io.micronaut.core.convert.TypeConverter<CharSequence,com.nimbusds.jose.JWEAlgorithm>
Converts a string to a JWEAlgorithm.
Since:
1.0
Author:
James Kleeh
  • Constructor Details

    • JWEAlgorithmConverter

      public JWEAlgorithmConverter()
  • Method Details

    • convert

      public Optional<com.nimbusds.jose.JWEAlgorithm> convert(CharSequence object, Class<com.nimbusds.jose.JWEAlgorithm> targetType, io.micronaut.core.convert.ConversionContext context)
      Specified by:
      convert in interface io.micronaut.core.convert.TypeConverter<CharSequence,com.nimbusds.jose.JWEAlgorithm>
      Parameters:
      object - e.g. RSA-OAEP
      targetType - The target type being converted to JWEAlgorithm
      context - The ConversionContext
      Returns:
      An optional JWEAlgorithm