Add documentation for DPoP support

Closes gh-2009
This commit is contained in:
Joe Grandja
2025-05-14 06:45:16 -04:00
parent 86b5607a03
commit 3debeb6f65
4 changed files with 144 additions and 0 deletions

View File

@@ -26,8 +26,13 @@ import org.springframework.security.oauth2.jwt.JwtDecoderFactory;
import org.springframework.util.StringUtils;
/**
* A verifier for DPoP Proof {@link Jwt}'s.
*
* @author Joe Grandja
* @since 1.5
* @see DPoPProofJwtDecoderFactory
* @see <a target="_blank" href="https://datatracker.ietf.org/doc/html/rfc9449">RFC 9449
* OAuth 2.0 Demonstrating Proof of Possession (DPoP)</a>
*/
final class DPoPProofVerifier {

View File

@@ -45,6 +45,7 @@ import org.springframework.util.Assert;
public interface OAuth2TokenContext extends Context {
/**
* The key used for the DPoP Proof {@link Jwt} (if available).
* @since 1.5
*/
String DPOP_PROOF_KEY = Jwt.class.getName().concat(".DPOP_PROOF");