アノテーションインターフェース AutoApplySession
@InheritedSE
@InterceptorBinding
@RetentionSE(RUNTIMESE)
@TargetSE(TYPESE)
public @interface AutoApplySession
AutoApplySession アノテーションは、認証メカニズムが
jakarta.servlet.http.registerSession を使用し、これをすべてのリクエストに自動的に適用することを宣言的に指定する機能をアプリケーションに提供します。jakarta.servlet.http.registerSession の詳細については、Jakarta Authentication 仕様を参照してください。
このサポートは、必要なロジックを実行する Jakarta Interceptors インターセプターの実装を介して提供されます。
例:
@RequestScoped
@AutoApplySession
public class CustomAuthenticationMechanism implements HttpAuthenticationMechanism {
// ...
}
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明static final classAutoApplySession アノテーションのインラインインスタンス化をサポートします。