クラス DPoPProofReplayValidator
java.lang.ObjectSE
org.springframework.security.oauth2.jwt.DPoPProofReplayValidator
- 実装済みのインターフェース一覧:
OAuth2TokenValidator<Jwt>
DPoP プルーフリプレイ攻撃を軽減する
OAuth2TokenValidator。This validator mitigates DPoP Proof Replay by ensuring the DPoP Proof:
iat(発行日)クレームが含まれており、許容時間枠内です。(configured viasetClockSkew(Duration))- contains the
jti(JWT ID) claim, and it has not been used previously
This implementation uses a Cache to store the jti claim (along with other information in CacheValue ) to enforce single-use. The jti is retained in the cache until the DPoP Proof expires, which is calculated as iat + clockSkew.
- 導入:
- 6.5.12
- 関連事項:
ネストされたクラスの概要
ネストされたクラスコンストラクター概要
コンストラクターコンストラクター説明DPoPProofReplayValidator(org.springframework.cache.Cache cache) 指定されたパラメーターを使用してDPoPProofReplayValidatorを構築します。方法の概要
修飾子と型メソッド説明voidInstant.now(Clock)SE で使用されるClockSE を設定します。voidsetClockSkew(DurationSE clockSkew) クロックのスキューを設定します。提供された OAuth 2.0 トークンの有効性および / または制約を確認します。
コンストラクターの詳細
DPoPProofReplayValidator
public DPoPProofReplayValidator(org.springframework.cache.Cache cache) 指定されたパラメーターを使用してDPoPProofReplayValidatorを構築します。- パラメーター:
cache- theCacheused to storeDPoPProofReplayValidator.CacheValuewhich contains information of the used DPoP ProofJwt's
方法の詳細
validate
インターフェースからコピーされた説明:OAuth2TokenValidator提供された OAuth 2.0 トークンの有効性および / または制約を確認します。- 次で指定:
- インターフェース
OAuth2TokenValidator<Jwt>内のvalidate - パラメーター:
jwt- OAuth 2.0 トークン- 戻り値:
- OAuth2TokenValidationResult 検証の成功または失敗の詳細
setClockSkew
Sets the clock skew. The default is 30 seconds.- パラメーター:
clockSkew- 監視の歪み
setClock