クラス DefaultOAuth2AuthenticatedPrincipal
java.lang.ObjectSE
org.springframework.security.oauth2.core.DefaultOAuth2AuthenticatedPrincipal
- 実装されたすべてのインターフェース:
SerializableSE
、AuthenticatedPrincipal
、OAuth2AuthenticatedPrincipal
public final class DefaultOAuth2AuthenticatedPrincipal
extends ObjectSE
implements OAuth2AuthenticatedPrincipal, SerializableSE
OAuth 2.0 トークンの属性をラップするドメインオブジェクト。
- 導入:
- 5.2
- 関連事項:
コンストラクターのサマリー
コンストラクターコンストラクター説明DefaultOAuth2AuthenticatedPrincipal
(StringSE name, MapSE<StringSE, ObjectSE> attributes, CollectionSE<GrantedAuthority> authorities) 指定されたパラメーターを使用してDefaultOAuth2AuthenticatedPrincipal
を構築します。DefaultOAuth2AuthenticatedPrincipal
(MapSE<StringSE, ObjectSE> attributes, CollectionSE<GrantedAuthority> authorities) 指定されたパラメーターを使用してDefaultOAuth2AuthenticatedPrincipal
を構築します。メソッドのサマリー
修飾子と型メソッド説明OAuth 2.0 トークンの属性をマップ形式で取得します。CollectionSE<? extends GrantedAuthority>
この OAuth 2.0 トークンに関連付けられたGrantedAuthority
のCollection
SE を取得しますgetName()
認証されたPrincipal
の名前を返します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal から継承されたメソッド
getAttribute
コンストラクターの詳細
DefaultOAuth2AuthenticatedPrincipal
public DefaultOAuth2AuthenticatedPrincipal(MapSE<StringSE, ObjectSE> attributes, CollectionSE<GrantedAuthority> authorities) 指定されたパラメーターを使用してDefaultOAuth2AuthenticatedPrincipal
を構築します。- パラメーター:
attributes
- OAuth 2.0 トークンの属性authorities
- OAuth 2.0 トークンの権限
DefaultOAuth2AuthenticatedPrincipal
public DefaultOAuth2AuthenticatedPrincipal(StringSE name, MapSE<StringSE, ObjectSE> attributes, CollectionSE<GrantedAuthority> authorities) 指定されたパラメーターを使用してDefaultOAuth2AuthenticatedPrincipal
を構築します。- パラメーター:
name
- OAuth 2.0 トークンに添付された名前attributes
- OAuth 2.0 トークンの属性authorities
- OAuth 2.0 トークンの権限
メソッドの詳細
getAttributes
OAuth 2.0 トークンの属性をマップ形式で取得します。- 次で指定:
- インターフェース
OAuth2AuthenticatedPrincipal
のgetAttributes
- 戻り値:
- 属性の名前でキー付けされた属性のオブジェクトの
Map
SE
getAuthorities
インターフェースからコピーされた説明:OAuth2AuthenticatedPrincipal
この OAuth 2.0 トークンに関連付けられたGrantedAuthority
のCollection
SE を取得します- 次で指定:
- インターフェース
OAuth2AuthenticatedPrincipal
のgetAuthorities
- 戻り値:
- OAuth 2.0 トークンオーソリティ
getName
インターフェースからコピーされた説明:AuthenticatedPrincipal
認証されたPrincipal
の名前を返します。非null
。- 次で指定:
- インターフェース
AuthenticatedPrincipal
のgetName
- 戻り値:
- 認証された
Principal
の名前