クラス BearerTokenAuthentication
java.lang.ObjectSE
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken>
org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthentication
- 実装されたすべてのインターフェース:
SerializableSE
、PrincipalSE
、Authentication
、CredentialsContainer
@Transient
public class BearerTokenAuthentication
extends AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken>
ベアラートークンを介して取得された認証の成功を表す
Authentication
トークン。- 導入:
- 5.2
- 関連事項:
コンストラクターのサマリー
コンストラクターコンストラクター説明BearerTokenAuthentication
(OAuth2AuthenticatedPrincipal principal, OAuth2AccessToken credentials, CollectionSE<? extends GrantedAuthority> authorities) 指定された引数でBearerTokenAuthentication
を構築しますメソッドのサマリー
クラス org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken から継承されたメソッド
getCredentials, getPrincipal, getToken
クラス org.springframework.security.authentication.AbstractAuthenticationToken から継承されたメソッド
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, waitSE, waitSE
インターフェース java.security.PrincipalSE から継承されたメソッド
impliesSE
コンストラクターの詳細
BearerTokenAuthentication
public BearerTokenAuthentication(OAuth2AuthenticatedPrincipal principal, OAuth2AccessToken credentials, CollectionSE<? extends GrantedAuthority> authorities) 指定された引数でBearerTokenAuthentication
を構築します- パラメーター:
principal
- OAuth 2.0 属性credentials
- 検証済みトークンauthorities
- 指定されたトークンに関連付けられた権限
メソッドの詳細
getTokenAttributes
クラスからコピーされた説明:AbstractOAuth2TokenAuthenticationToken
アクセストークンの属性を返します。- 次で指定:
- クラス
AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken>
のgetTokenAttributes
- 戻り値:
- アクセストークンの属性の
Map
。