クラスの使用
jakarta.security.enterprise.AuthenticationStatus
AuthenticationStatus を使用するパッケージ パッケージ 説明 jakarta.security.enterprise メイン Jakarta Security パッケージ。jakarta.security.enterprise.authentication.mechanism.http HTTP 認証メカニズム API パッケージ。jakarta.security.enterprise 内の AuthenticationStatus 使用
AuthenticationStatus を返す jakarta.security.enterprise のメソッド 修飾子と型 メソッド 説明 AuthenticationStatusSecurityContext. authenticate(HttpServletRequest request, HttpServletResponse response, AuthenticationParameters parameters)呼び出し元との Web/HTTP ベースの認証ダイアログを開始または続行する必要があることをコンテナーに通知します(プログラムでトリガーします)。static AuthenticationStatusAuthenticationStatus. valueOf(StringSE name)指定された名前を持つこの型の列挙定数を返します。static AuthenticationStatus[]AuthenticationStatus. values()この列挙型の定数を含む配列を、宣言されている順序で返します。jakarta.security.enterprise.authentication.mechanism.http 内の AuthenticationStatus 使用
AuthenticationStatus を返す jakarta.security.enterprise.authentication.mechanism.http のメソッド 修飾子と型 メソッド 説明 AuthenticationStatusHttpMessageContext. doNothing()コンテナーに「何もしない」ように指示します。AuthenticationStatusHttpMessageContextWrapper. doNothing()AuthenticationStatusHttpMessageContext. forward(StringSE path)サーバー上の別のリソース(Jakarta Servlet、Jakarta Server Pages ファイル、または HTML ファイル)に転送します。AuthenticationStatusHttpMessageContextWrapper. forward(StringSE path)AuthenticationStatusHttpMessageContext. notifyContainerAboutLogin(CredentialValidationResult result)ID ストアのCredentialValidationResult結果をコンテナーに直接渡すことを目的とした便利なメソッド。AuthenticationStatusHttpMessageContext. notifyContainerAboutLogin(StringSE callername, SetSE<StringSE> groups)SecurityContext.isCallerInRole(String)などで使用するためにアプリケーションで使用できるようにするために、指定された呼び出し元の名前とグループを登録するようにコンテナーに要求します。AuthenticationStatusHttpMessageContext. notifyContainerAboutLogin(PrincipalSE principal, SetSE<StringSE> groups)SecurityContext.isCallerInRole(String)などで使用するためにアプリケーションで使用できるようにするために、指定された呼び出し元のプリンシパルとグループを登録するようにコンテナーに要求します。AuthenticationStatusHttpMessageContextWrapper. notifyContainerAboutLogin(CredentialValidationResult result)AuthenticationStatusHttpMessageContextWrapper. notifyContainerAboutLogin(StringSE username, SetSE<StringSE> roles)AuthenticationStatusHttpMessageContextWrapper. notifyContainerAboutLogin(PrincipalSE principal, SetSE<StringSE> roles)AuthenticationStatusHttpMessageContext. redirect(StringSE location)レスポンスステータスを SC_FOUND302 に設定します (検出)AuthenticationStatusHttpMessageContextWrapper. redirect(StringSE location)AuthenticationStatusHttpMessageContext. responseNotFound()レスポンスステータスを 404(見つかりません)に設定します。AuthenticationStatusHttpMessageContextWrapper. responseNotFound()AuthenticationStatusHttpMessageContext. responseUnauthorized()レスポンスステータスを 401(未承認)に設定します。AuthenticationStatusHttpMessageContextWrapper. responseUnauthorized()default AuthenticationStatusHttpAuthenticationMechanism. secureResponse(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext)オプションで、レスポンスを保護します。AuthenticationStatusHttpAuthenticationMechanismWrapper. secureResponse(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext)AuthenticationStatusHttpAuthenticationMechanism. validateRequest(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext)HTTP リクエストを認証します。AuthenticationStatusHttpAuthenticationMechanismWrapper. validateRequest(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext)