クラス OidcIdTokenDecoderFactory
java.lang.ObjectSE
org.springframework.security.oauth2.client.oidc.authentication.OidcIdTokenDecoderFactory
- 実装されたすべてのインターフェース:
JwtDecoderFactory<ClientRegistration>
public final class OidcIdTokenDecoderFactory
extends ObjectSE
implements JwtDecoderFactory<ClientRegistration>
OidcIdToken
署名検証に使用される JwtDecoder
を提供する factory
。提供された JwtDecoder
は、特定の ClientRegistration
に関連付けられています。- 導入:
- 5.2
- 関連事項:
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明createDecoder
(ClientRegistration clientRegistration) 指定された「コンテキスト」型を使用してJwtDecoder
を作成します。OidcIdToken
のクレーム値の型変換に使用されるデフォルトConverter
を返します。void
setClaimTypeConverterFactory
(FunctionSE<ClientRegistration, org.springframework.core.convert.converter.Converter<MapSE<StringSE, ObjectSE>, MapSE<StringSE, ObjectSE>>> claimTypeConverterFactory) OidcIdToken
のクレーム値の型変換に使用されるConverter
を提供するファクトリを設定します。void
setJwsAlgorithmResolver
(FunctionSE<ClientRegistration, JwsAlgorithm> jwsAlgorithmResolver) ID Token
の署名または MAC に使用される予想されるJWS algorithm
を提供するリゾルバーを設定します。void
setJwtValidatorFactory
(FunctionSE<ClientRegistration, OAuth2TokenValidator<Jwt>> jwtValidatorFactory) JwtDecoder
が使用するOAuth2TokenValidator
を提供するファクトリを設定します。
コンストラクターの詳細
OidcIdTokenDecoderFactory
public OidcIdTokenDecoderFactory()
メソッドの詳細
createDefaultClaimTypeConverters
public static MapSE<StringSE,org.springframework.core.convert.converter.Converter<ObjectSE, createDefaultClaimTypeConverters()?>> OidcIdToken
のクレーム値の型変換に使用されるデフォルトConverter
を返します。- 戻り値:
claim name
によってキー設定されたConverter
のMap
SE
createDecoder
インターフェースからコピーされた説明:JwtDecoderFactory
指定された「コンテキスト」型を使用してJwtDecoder
を作成します。- 次で指定:
- インターフェース
JwtDecoderFactory<ClientRegistration>
のcreateDecoder
- パラメーター:
clientRegistration
- コンテキスト情報を提供する型- 戻り値:
JwtDecoder
setJwtValidatorFactory
public void setJwtValidatorFactory(FunctionSE<ClientRegistration, OAuth2TokenValidator<Jwt>> jwtValidatorFactory) JwtDecoder
が使用するOAuth2TokenValidator
を提供するファクトリを設定します。デフォルトではJwtTimestampValidator
とOidcIdTokenValidator
を構成します。- パラメーター:
jwtValidatorFactory
-OAuth2TokenValidator
を提供するファクトリ
setJwsAlgorithmResolver
public void setJwsAlgorithmResolver(FunctionSE<ClientRegistration, JwsAlgorithm> jwsAlgorithmResolver) ID Token
の署名または MAC に使用される予想されるJWS algorithm
を提供するリゾルバーを設定します。デフォルトは、すべてのclients
についてRS256
に解決されます。- パラメーター:
jwsAlgorithmResolver
- 特定のclient
に予想されるJWS algorithm
を提供するリゾルバー
setClaimTypeConverterFactory
public void setClaimTypeConverterFactory(FunctionSE<ClientRegistration, org.springframework.core.convert.converter.Converter<MapSE<StringSE, ObjectSE>, MapSE<StringSE, ObjectSE>>> claimTypeConverterFactory) OidcIdToken
のクレーム値の型変換に使用されるConverter
を提供するファクトリを設定します。デフォルトは、すべてのclients
のClaimTypeConverter
です。- パラメーター:
claimTypeConverterFactory
- 特定のclient
のクレーム値の型変換に使用されるConverter
を提供するファクトリ