クラス JwtAuthenticationToken
java.lang.ObjectSE
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken<Jwt>
org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken
- 実装されたすべてのインターフェース:
SerializableSE
、PrincipalSE
、Authentication
、CredentialsContainer
- 導入:
- 5.1
- 関連事項:
コンストラクターのサマリー
コンストラクターコンストラクター説明指定されたパラメーターを使用してJwtAuthenticationToken
を構築します。JwtAuthenticationToken
(Jwt jwt, CollectionSE<? extends GrantedAuthority> authorities) 指定されたパラメーターを使用してJwtAuthenticationToken
を構築します。JwtAuthenticationToken
(Jwt jwt, CollectionSE<? extends GrantedAuthority> authorities, StringSE name) 指定されたパラメーターを使用してJwtAuthenticationToken
を構築します。メソッドのサマリー
クラス org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken から継承されたメソッド
getCredentials, getPrincipal, getToken
クラス org.springframework.security.authentication.AbstractAuthenticationToken から継承されたメソッド
equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, waitSE, waitSE
インターフェース java.security.PrincipalSE から継承されたメソッド
impliesSE
コンストラクターの詳細
JwtAuthenticationToken
指定されたパラメーターを使用してJwtAuthenticationToken
を構築します。- パラメーター:
jwt
- JWT
JwtAuthenticationToken
指定されたパラメーターを使用してJwtAuthenticationToken
を構築します。- パラメーター:
jwt
- JWTauthorities
- JWT に割り当てられた権限
JwtAuthenticationToken
public JwtAuthenticationToken(Jwt jwt, CollectionSE<? extends GrantedAuthority> authorities, StringSE name) 指定されたパラメーターを使用してJwtAuthenticationToken
を構築します。- パラメーター:
jwt
- JWTauthorities
- JWT に割り当てられた権限name
- プリンシパル名
メソッドの詳細
getTokenAttributes
クラスからコピーされた説明:AbstractOAuth2TokenAuthenticationToken
アクセストークンの属性を返します。- 次で指定:
- クラス
AbstractOAuth2TokenAuthenticationToken<Jwt>
のgetTokenAttributes
- 戻り値:
- アクセストークンの属性の
Map
。
getName
デフォルトでは、Jwt
のサブジェクトであるプリンシパル名- 次で指定:
- インターフェース
PrincipalSE
のgetName
- オーバーライド:
- クラス
AbstractAuthenticationToken
のgetName