クラス SecurityContextImpl
java.lang.Object
SE
org.springframework.security.core.context.SecurityContextImpl
- 実装されたすべてのインターフェース:
-
Serializable SE
,SecurityContext
- 既知の直属サブクラス
-
TransientSecurityContext
SecurityContext
の基本実装。
SecurityContextHolder
戦略でデフォルトで使用されます。
- 関連事項:
-
コンストラクターのサマリー
コンストラクター -
メソッドのサマリー
修飾子と型メソッド説明boolean
現在認証されているプリンシパル、または認証リクエストトークンを取得します。int
hashCode ()
void
setAuthentication
( Authentication authentication) 現在認証されているプリンシパルを変更するか、認証情報を削除します。toString ()
-
コンストラクターの詳細
-
SecurityContextImpl
public SecurityContextImpl () -
SecurityContextImpl
-
-
メソッドの詳細
-
equals
-
getAuthentication
インターフェースからコピーされた説明:SecurityContext
現在認証されているプリンシパル、または認証リクエストトークンを取得します。- 次で指定:
-
インターフェース
SecurityContext
のgetAuthentication
- 戻り値:
-
認証情報が利用できない場合は、
Authentication
またはnull
-
hashCode
public int hashCode () -
setAuthentication
インターフェースからコピーされた説明:SecurityContext
現在認証されているプリンシパルを変更するか、認証情報を削除します。- 次で指定:
-
インターフェース
SecurityContext
のsetAuthentication
- パラメーター:
-
authentication
- 新しいAuthentication
トークン、または認証情報をさらに保存する必要がない場合はnull
-
toString
-