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
AConversionService
configured with converters that provide type conversion for claim values.- Since:
- 5.2
- See Also:
GenericConversionService
,ClaimAccessor
-
-
Method Summary
All Methods Static Methods Concrete Methods 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 providedConverterRegistry
.static ClaimConversionService
getSharedInstance()
Returns a shared instance ofClaimConversionService
.-
Methods inherited from class org.springframework.core.convert.support.GenericConversionService
addConverter, addConverter, addConverter, addConverterFactory, canBypassConvert, canConvert, canConvert, convert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toString
-
-
-
-
Method Detail
-
getSharedInstance
public static ClaimConversionService getSharedInstance()
Returns a shared instance ofClaimConversionService
.- 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 providedConverterRegistry
.- Parameters:
converterRegistry
- the registry of converters to add to
-
-