クラス OAuth2IntrospectionAuthenticatedPrincipal
java.lang.ObjectSE
org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionAuthenticatedPrincipal
- 実装されたすべてのインターフェース:
SerializableSE
、AuthenticatedPrincipal
、ClaimAccessor
、OAuth2AuthenticatedPrincipal
、OAuth2TokenIntrospectionClaimAccessor
public final class OAuth2IntrospectionAuthenticatedPrincipal
extends ObjectSE
implements OAuth2TokenIntrospectionClaimAccessor, OAuth2AuthenticatedPrincipal, SerializableSE
OAuth 2.0 トークンイントロスペクションの属性をラップするドメインオブジェクト。
- 導入:
- 5.4
- 関連事項:
コンストラクターのサマリー
コンストラクターコンストラクター説明OAuth2IntrospectionAuthenticatedPrincipal
(StringSE name, MapSE<StringSE, ObjectSE> attributes, CollectionSE<GrantedAuthority> authorities) 指定されたパラメーターを使用してOAuth2IntrospectionAuthenticatedPrincipal
を構築します。OAuth2IntrospectionAuthenticatedPrincipal
(MapSE<StringSE, ObjectSE> attributes, CollectionSE<GrantedAuthority> authorities) 指定されたパラメーターを使用してOAuth2IntrospectionAuthenticatedPrincipal
を構築します。メソッドのサマリー
修飾子と型メソッド説明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.ClaimAccessor から継承されたメソッド
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaim
インターフェース org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal から継承されたメソッド
getAttribute
インターフェース org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimAccessor から継承されたメソッド
getAudience, getClientId, getExpiresAt, getId, getIssuedAt, getIssuer, getNotBefore, getScopes, getSubject, getTokenType, getUsername, isActive
コンストラクターの詳細
OAuth2IntrospectionAuthenticatedPrincipal
public OAuth2IntrospectionAuthenticatedPrincipal(MapSE<StringSE, ObjectSE> attributes, CollectionSE<GrantedAuthority> authorities) 指定されたパラメーターを使用してOAuth2IntrospectionAuthenticatedPrincipal
を構築します。- パラメーター:
attributes
- OAuth 2.0 トークンイントロスペクションの属性authorities
- OAuth 2.0 トークンイントロスペクションの権限
OAuth2IntrospectionAuthenticatedPrincipal
public OAuth2IntrospectionAuthenticatedPrincipal(StringSE name, MapSE<StringSE, ObjectSE> attributes, CollectionSE<GrantedAuthority> authorities) 指定されたパラメーターを使用してOAuth2IntrospectionAuthenticatedPrincipal
を構築します。- パラメーター:
name
- OAuth 2.0 トークンイントロスペクションに付けられた名前attributes
- OAuth 2.0 トークンイントロスペクションの属性authorities
- OAuth 2.0 トークンイントロスペクションの権限
メソッドの詳細
getAttributes
OAuth 2.0 トークンイントロスペクションの属性をマップ形式で取得します。- 次で指定:
- インターフェース
OAuth2AuthenticatedPrincipal
のgetAttributes
- 戻り値:
- 属性の名前でキー付けされた属性のオブジェクトの
Map
SE
getAuthorities
この OAuth 2.0 トークンイントロスペクションに関連付けられているGrantedAuthority
のCollection
SE を取得します- 次で指定:
- インターフェース
OAuth2AuthenticatedPrincipal
のgetAuthorities
- 戻り値:
- OAuth 2.0 トークンイントロスペクションオーソリティ
getName
インターフェースからコピーされた説明:AuthenticatedPrincipal
認証されたPrincipal
の名前を返します。非null
。- 次で指定:
- インターフェース
AuthenticatedPrincipal
のgetName
- 戻り値:
- 認証された
Principal
の名前
getClaims
インターフェースからコピーされた説明:ClaimAccessor
アサーションに使用できるクレームのセットを返します。- 次で指定:
- インターフェース
ClaimAccessor
のgetClaims
- 戻り値:
Map
のクレーム