クラス WebSessionServerSecurityContextRepository
- java.lang.Object
-
- org.springframework.security.web.server.context.WebSessionServerSecurityContextRepository
- 実装されたすべてのインターフェース:
ServerSecurityContextRepository
public class WebSessionServerSecurityContextRepository extends java.lang.Object implements ServerSecurityContextRepository
- 導入:
- 5.0
フィールドサマリー
フィールド 修飾子と型 フィールド 説明 static java.lang.String
DEFAULT_SPRING_SECURITY_CONTEXT_ATTR_NAME
SecurityContext
を保存およびロードするためのデフォルトのセッション属性名
コンストラクターのサマリー
コンストラクター コンストラクター 説明 WebSessionServerSecurityContextRepository()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 reactor.core.publisher.Mono<SecurityContext>
load(org.springframework.web.server.ServerWebExchange exchange)
ServerWebExchange
に関連付けられた SecurityContext をロードしますreactor.core.publisher.Mono<java.lang.Void>
save(org.springframework.web.server.ServerWebExchange exchange, SecurityContext context)
SecurityContext を保存しますvoid
setSpringSecurityContextAttrName(java.lang.String springSecurityContextAttrName)
SecurityContext
の保存とロードに使用されるセッション属性名を設定します
フィールドの詳細
DEFAULT_SPRING_SECURITY_CONTEXT_ATTR_NAME
public static final java.lang.String DEFAULT_SPRING_SECURITY_CONTEXT_ATTR_NAME
SecurityContext
を保存およびロードするためのデフォルトのセッション属性名- 関連事項:
- 定数フィールド値
メソッドの詳細
setSpringSecurityContextAttrName
public void setSpringSecurityContextAttrName(java.lang.String springSecurityContextAttrName)
SecurityContext
の保存とロードに使用されるセッション属性名を設定します- パラメーター:
springSecurityContextAttrName
-SecurityContext
の保存およびロードに使用するセッション属性名
save
public reactor.core.publisher.Mono<java.lang.Void> save(org.springframework.web.server.ServerWebExchange exchange, SecurityContext context)
インターフェースからコピーされた説明:ServerSecurityContextRepository
SecurityContext を保存します- 次で指定:
- インターフェース
ServerSecurityContextRepository
のsave
- パラメーター:
exchange
- SecurityContext に関連付ける交換context
- 保存する SecurityContext- 戻り値:
- 完了通知 (成功またはエラー)
load
public reactor.core.publisher.Mono<SecurityContext> load(org.springframework.web.server.ServerWebExchange exchange)
インターフェースからコピーされた説明:ServerSecurityContextRepository
ServerWebExchange
に関連付けられた SecurityContext をロードします- 次で指定:
- インターフェース
ServerSecurityContextRepository
のload
- パラメーター:
exchange
-SecurityContext
を検索する交換- 戻り値:
- 検索する
SecurityContext
。見つからない場合は空。null しない