クラス JwtAuthenticationConverter
java.lang.ObjectSE
org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter
- 実装済みのインターフェース一覧:
org.springframework.core.convert.converter.Converter<Jwt,AbstractAuthenticationToken>
public class JwtAuthenticationConverter
extends ObjectSE
implements org.springframework.core.convert.converter.Converter<Jwt,AbstractAuthenticationToken>
- 導入:
- 5.1
コンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voidsetJwtGrantedAuthoritiesConverter(org.springframework.core.convert.converter.Converter<Jwt, CollectionSE<GrantedAuthority>> jwtGrantedAuthoritiesConverter) 使用するConverter<Jwt, Collection<GrantedAuthority>>を設定します。voidsetPrincipalClaimName(StringSE principalClaimName) プリンシパルクレーム名を設定します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.core.convert.converter.Converter から継承されたメソッド
andThen
コンストラクターの詳細
JwtAuthenticationConverter
public JwtAuthenticationConverter()
メソッドの詳細
convert
- 次で指定:
- インターフェース
org.springframework.core.convert.converter.Converter<Jwt,のAbstractAuthenticationToken> convert
setJwtGrantedAuthoritiesConverter
public void setJwtGrantedAuthoritiesConverter(org.springframework.core.convert.converter.Converter<Jwt, CollectionSE<GrantedAuthority>> jwtGrantedAuthoritiesConverter) 使用するConverter<Jwt, Collection<GrantedAuthority>>を設定します。デフォルトはJwtGrantedAuthoritiesConverterです。- パラメーター:
jwtGrantedAuthoritiesConverter- コンバーター- 導入:
- 5.2
- 関連事項:
setPrincipalClaimName
プリンシパルクレーム名を設定します。デフォルトはJwtClaimNames.SUBです。- パラメーター:
principalClaimName- 主なクレーム名- 導入:
- 5.4