クラス SecurityContextImpl

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

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

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

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

    • SecurityContextImpl

      public SecurityContextImpl()
    • SecurityContextImpl

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

    • equals

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

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

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

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

      public StringSE toString()
      オーバーライド:
      クラス ObjectSEtoString