Class AudienceValidationJwtDecoder

java.lang.Object
org.springaicommunity.mcp.security.server.oauth2.jwt.AudienceValidationJwtDecoder
All Implemented Interfaces:
org.springframework.security.oauth2.jwt.JwtDecoder

public class AudienceValidationJwtDecoder extends Object implements org.springframework.security.oauth2.jwt.JwtDecoder
A JwtDecoder that wraps a delegate decoder and adds audience validation.
Author:
Daniel Garnier-Moiroux
  • Constructor Details

    • AudienceValidationJwtDecoder

      public AudienceValidationJwtDecoder(org.springframework.security.oauth2.jwt.JwtDecoder delegate, ResourceIdentifier resourceIdentifier)
  • Method Details

    • decode

      public org.springframework.security.oauth2.jwt.Jwt decode(String token) throws org.springframework.security.oauth2.jwt.JwtException
      Specified by:
      decode in interface org.springframework.security.oauth2.jwt.JwtDecoder
      Throws:
      org.springframework.security.oauth2.jwt.JwtException