クラス 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
コンストラクターのサマリー
コンストラクター方法の概要
修飾子と型メソッド説明void
setJwtGrantedAuthoritiesConverter
(org.springframework.core.convert.converter.Converter<Jwt, CollectionSE<GrantedAuthority>> jwtGrantedAuthoritiesConverter) 使用するConverter<Jwt, Collection<GrantedAuthority>>
を設定します。void
setPrincipalClaimName
(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