Class ClaimConversionService

java.lang.Object
org.springframework.core.convert.support.GenericConversionService
org.springframework.security.oauth2.core.converter.ClaimConversionService
All Implemented Interfaces:
org.springframework.core.convert.ConversionService, org.springframework.core.convert.converter.ConverterRegistry, org.springframework.core.convert.support.ConfigurableConversionService

public final class ClaimConversionService extends org.springframework.core.convert.support.GenericConversionService
A ConversionService configured with converters that provide type conversion for claim values.
Since:
5.2
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addConverters(org.springframework.core.convert.converter.ConverterRegistry converterRegistry)
    Adds the converters that provide type conversion for claim values to the provided ConverterRegistry.
    Returns a shared instance of ClaimConversionService.

    Methods inherited from class org.springframework.core.convert.support.GenericConversionService

    addConverter, addConverter, addConverter, addConverterFactory, canBypassConvert, canConvert, canConvert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.core.convert.ConversionService

    convert
  • Method Details

    • getSharedInstance

      public static ClaimConversionService getSharedInstance()
      Returns a shared instance of ClaimConversionService.
      Returns:
      a shared instance of ClaimConversionService
    • addConverters

      public static void addConverters(org.springframework.core.convert.converter.ConverterRegistry converterRegistry)
      Adds the converters that provide type conversion for claim values to the provided ConverterRegistry.
      Parameters:
      converterRegistry - the registry of converters to add to