クラス NimbusJwtDecoder.SecretKeyJwtDecoderBuilder
- java.lang.Object
-
- org.springframework.security.oauth2.jwt.NimbusJwtDecoder.SecretKeyJwtDecoderBuilder
- 含まれているクラス:
- NimbusJwtDecoder
public static final class NimbusJwtDecoder.SecretKeyJwtDecoderBuilder extends java.lang.ObjectSecretKeyに基づいてNimbusJwtDecoderインスタンスを作成するためのビルダー。
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 NimbusJwtDecoderbuild()構成されたNimbusJwtDecoderをビルドします。NimbusJwtDecoder.SecretKeyJwtDecoderBuilderjwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer)NimbusJwtDecoder.SecretKeyJwtDecoderBuildermacAlgorithm(MacAlgorithm macAlgorithm)MAC を生成するときは、指定されたアルゴリズムを使用してください。
メソッドの詳細
macAlgorithm
public NimbusJwtDecoder.SecretKeyJwtDecoderBuilder macAlgorithm(MacAlgorithm macAlgorithm)
MAC を生成するときは、指定されたアルゴリズムを使用してください。値は HS256、HS384 または HS512 のいずれかである必要があります。- パラメーター:
macAlgorithm- 使用する MAC アルゴリズム- 戻り値:
- さらなる構成のための
NimbusJwtDecoder.SecretKeyJwtDecoderBuilder
jwtProcessorCustomizer
public NimbusJwtDecoder.SecretKeyJwtDecoderBuilder jwtProcessorCustomizer(java.util.function.Consumer<com.nimbusds.jwt.proc.ConfigurableJWTProcessor<com.nimbusds.jose.proc.SecurityContext>> jwtProcessorCustomizer)
- パラメーター:
jwtProcessorCustomizer- プロセッサーを変更するために使用されるコールバック- 戻り値:
- さらなる構成のための
NimbusJwtDecoder.SecretKeyJwtDecoderBuilder - 導入:
- 5.4
build
public NimbusJwtDecoder build()
構成されたNimbusJwtDecoderをビルドします。- 戻り値:
- 設定された
NimbusJwtDecoder