クラス NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder
- java.lang.Object
-
- org.springframework.security.oauth2.jwt.NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder
- 含まれているクラス:
- NimbusJwtDecoder
public static final class NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder extends java.lang.ObjectJWK セット uri に基づいてNimbusJwtDecoderインスタンスを作成するためのビルダー。
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 NimbusJwtDecoderbuild()構成されたNimbusJwtDecoderをビルドします。NimbusJwtDecoder.JwkSetUriJwtDecoderBuildercache(org.springframework.cache.Cache cache)指定されたCacheを使用して JWK セットを格納します。NimbusJwtDecoder.JwkSetUriJwtDecoderBuilderjwsAlgorithm(SignatureAlgorithm signatureAlgorithm)指定された署名アルゴリズムを、使用するアルゴリズムのセットに追加します。NimbusJwtDecoder.JwkSetUriJwtDecoderBuilderjwsAlgorithms(java.util.function.Consumer<java.util.Set<SignatureAlgorithm>> signatureAlgorithmsConsumer)指定されたConsumerで使用するアルゴリズムのリストを構成します。NimbusJwtDecoder.JwkSetUriJwtDecoderBuilderjwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer)NimbusJwtDecoder.JwkSetUriJwtDecoderBuilderrestOperations(org.springframework.web.client.RestOperations restOperations)
メソッドの詳細
jwsAlgorithm
public NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder jwsAlgorithm(SignatureAlgorithm signatureAlgorithm)
指定された署名アルゴリズムを、使用するアルゴリズムのセットに追加します。- パラメーター:
signatureAlgorithm- 使用するアルゴリズム- 戻り値:
- さらなる構成のための
NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder
jwsAlgorithms
public NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder jwsAlgorithms(java.util.function.Consumer<java.util.Set<SignatureAlgorithm>> signatureAlgorithmsConsumer)
指定されたConsumerで使用するアルゴリズムのリストを構成します。- パラメーター:
signatureAlgorithmsConsumer- アルゴリズムリストをさらに設定するためのConsumer- 戻り値:
- さらなる構成のための
NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder
restOperations
public NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder restOperations(org.springframework.web.client.RestOperations restOperations)
- パラメーター:
restOperations-- 戻り値:
cache
public NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder cache(org.springframework.cache.Cache cache)
指定されたCacheを使用して JWK セットを格納します。- パラメーター:
cache- JWK セットの格納に使用されるCache- 戻り値:
- さらなる構成のための
NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder - 導入:
- 5.4
jwtProcessorCustomizer
public NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder jwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer)
- パラメーター:
jwtProcessorCustomizer- プロセッサーを変更するために使用されるコールバック- 戻り値:
- さらなる構成のための
NimbusJwtDecoder.JwkSetUriJwtDecoderBuilder - 導入:
- 5.4
build
public NimbusJwtDecoder build()
構成されたNimbusJwtDecoderをビルドします。- 戻り値:
- 設定された
NimbusJwtDecoder