クラス 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
  • コンストラクターの詳細

    • JwtAuthenticationConverter

      public JwtAuthenticationConverter()
  • メソッドの詳細

    • convert

      public final AbstractAuthenticationToken convert(Jwt jwt)
      次で指定:
      インターフェース 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

      public void setPrincipalClaimName(StringSE principalClaimName)
      プリンシパルクレーム名を設定します。デフォルトは JwtClaimNames.SUB です。
      パラメーター:
      principalClaimName - 主なクレーム名
      導入:
      5.4