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:
-
GenericConversionServiceClaimAccessor
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddConverters(org.springframework.core.convert.converter.ConverterRegistry converterRegistry) Adds the converters that provide type conversion for claim values to the providedConverterRegistry.static ClaimConversionServiceReturns a shared instance ofClaimConversionService.Methods inherited from class org.springframework.core.convert.support.GenericConversionService
addConverter, addConverter, addConverter, addConverterFactory, canBypassConvert, canConvert, canConvert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.core.convert.ConversionService
convert
-
Method Details
-
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