クラス SecurityContextImpl

java.lang.Object SE
org.springframework.security.core.context.SecurityContextImpl
実装されたすべてのインターフェース:
Serializable SE , SecurityContext
既知の直属サブクラス
TransientSecurityContext

public class SecurityContextImpl extends Object SE implements SecurityContext
SecurityContext の基本実装。

SecurityContextHolder 戦略でデフォルトで使用されます。

関連事項:
  • コンストラクターの詳細

    • SecurityContextImpl

      public SecurityContextImpl ()
    • SecurityContextImpl

      public SecurityContextImpl ( Authentication authentication)
  • メソッドの詳細

    • equals

      public boolean equals ( Object SE obj)
      オーバーライド:
      クラス Object SE equals SE
    • getAuthentication

      public Authentication getAuthentication ()
      インターフェースからコピーされた説明: SecurityContext
      現在認証されているプリンシパル、または認証リクエストトークンを取得します。
      次で指定:
      インターフェース SecurityContext getAuthentication
      戻り値:
      認証情報が利用できない場合は、 Authentication または null
    • hashCode

      public int hashCode ()
      オーバーライド:
      クラス Object SE hashCode
    • setAuthentication

      public void setAuthentication ( Authentication authentication)
      インターフェースからコピーされた説明: SecurityContext
      現在認証されているプリンシパルを変更するか、認証情報を削除します。
      次で指定:
      インターフェース SecurityContext setAuthentication
      パラメーター:
      authentication - 新しい Authentication トークン、または認証情報をさらに保存する必要がない場合は null
    • toString

      public String SE toString ()
      オーバーライド:
      クラス Object SE toString