クラス DigestAuthenticationEntryPoint
java.lang.ObjectSE
org.springframework.security.web.authentication.www.DigestAuthenticationEntryPoint
- 実装されているすべてのインターフェース:
org.springframework.beans.factory.InitializingBean、org.springframework.core.Ordered、AuthenticationEntryPoint
public class DigestAuthenticationEntryPoint
extends ObjectSE
implements AuthenticationEntryPoint, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered
DigestAuthenticationFilter を介して認証を開始するために SecurityEnforcementFilter によって使用されます。 ユーザーエージェントに送り返された nonce は、setNonceValiditySeconds(int) で示された期間有効です。デフォルトでは 300 秒です。リプレイ攻撃が大きな関心事である場合は、より短い時間を使用する必要があります。パフォーマンスを重視する場合は、より大きな値を使用できます。このクラスは、ノンスの有効期限が切れたときに stale=true ヘッダーを正しく表示するため、適切に実装されたユーザーエージェントは、新しいノンス値と自動的に再ネゴシエートします(つまり、ユーザーに新しいパスワードダイアログボックスを表示しません)。
フィールドのサマリー
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明voidvoidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException) 認証スキームを開始します。getKey()intintgetOrder()voidvoidsetNonceValiditySeconds(int nonceValiditySeconds) voidsetOrder(int order) voidsetRealmName(StringSE realmName)
コンストラクターの詳細
DigestAuthenticationEntryPoint
public DigestAuthenticationEntryPoint()
メソッドの詳細
getOrder
public int getOrder()- 次で指定:
- インターフェース
org.springframework.core.OrderedのgetOrder
setOrder
public void setOrder(int order) afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBeanのafterPropertiesSet
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthenticationException authException) throws IOExceptionSE インターフェースからコピーされた説明:AuthenticationEntryPoint認証スキームを開始します。ExceptionTranslationFilterは、このメソッドを呼び出す前に、AbstractAuthenticationProcessingFilter.SPRING_SECURITY_SAVED_REQUEST_KEYという名前のHttpSession属性にリクエストされたターゲット URL を入力します。実装では、必要に応じて
ServletResponseのヘッダーを変更して、認証プロセスを開始する必要があります。- 次で指定:
- インターフェース
AuthenticationEntryPointのcommence - パラメーター:
request-AuthenticationExceptionが発生したリクエストresponse- ユーザーエージェントが認証を開始できるようにするauthException- 呼び出しの原因となった例外- 例外:
IOExceptionSE
getKey
getNonceValiditySeconds
public int getNonceValiditySeconds()getRealmName
setKey
setNonceValiditySeconds
public void setNonceValiditySeconds(int nonceValiditySeconds) setRealmName