クラス OAuth2UserAuthority
java.lang.ObjectSE
org.springframework.security.oauth2.core.user.OAuth2UserAuthority
- 実装されたすべてのインターフェース:
SerializableSE
,GrantedAuthority
- 既知の直属サブクラス
OidcUserAuthority
OAuth2User
に関連付けることができる GrantedAuthority
。- 導入:
- 5.0
- 関連事項:
コンストラクターのサマリー
コンストラクターコンストラクター説明OAuth2UserAuthority
(StringSE authority, MapSE<StringSE, ObjectSE> attributes) 指定されたパラメーターを使用してOAuth2UserAuthority
を構築します。OAuth2UserAuthority
(MapSE<StringSE, ObjectSE> attributes) メソッドのサマリー
修飾子と型メソッド説明boolean
ユーザーに関する属性を返します。GrantedAuthority
をString
として表現でき、String
がAccessDecisionManager
(またはデリゲート)によるアクセス制御の決定に依存する精度で十分である場合、このメソッドはそのようなString
を返す必要があります。int
hashCode()
toString()
コンストラクターの詳細
OAuth2UserAuthority
- パラメーター:
attributes
- ユーザーに関する属性
OAuth2UserAuthority
指定されたパラメーターを使用してOAuth2UserAuthority
を構築します。- パラメーター:
authority
- ユーザーに付与された権限attributes
- ユーザーに関する属性
メソッドの詳細
getAuthority
インターフェースからコピーされた説明:GrantedAuthority
GrantedAuthority
をString
として表現でき、String
がAccessDecisionManager
(またはデリゲート)によるアクセス制御の決定に依存する精度で十分である場合、このメソッドはそのようなString
を返す必要があります。GrantedAuthority
をString
として十分な精度で表現できない場合、null
を返す必要があります。null
を返すには、GrantedAuthority
実装を具体的にサポートするためにAccessDecisionManager
(またはデリゲート)が必要になるため、実際に必要でない限り、null
を返すことは避けてください。- 次で指定:
- インターフェース
GrantedAuthority
のgetAuthority
- 戻り値:
- 付与された権限の表現(または付与された権限が十分な精度で
String
として表現できない場合はnull
)。
getAttributes
ユーザーに関する属性を返します。- 戻り値:
- ユーザーに関する属性の
Map
equals
hashCode
public int hashCode()toString