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:
-
GenericConversionService
ClaimAccessor
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addConverters
(org.springframework.core.convert.converter.ConverterRegistry converterRegistry) Adds the converters that provide type conversion for claim values to the providedConverterRegistry
.static ClaimConversionService
Returns 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, 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
-
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