Class IssuerAwareJWTDecoderAdapter

  • All Implemented Interfaces:
    org.springframework.security.oauth2.jwt.JwtDecoder

    public class IssuerAwareJWTDecoderAdapter
    extends Object
    implements org.springframework.security.oauth2.jwt.JwtDecoder
    An implementation of JwtDecoder that is issuer aware. This decoder validates the issuer, obtains configurations from the issuer, and creates a delegate decoder that uses the issuer specified validator based on the issuer configuration when decoding JWT tokens.
    Author:
    Keivan Khalichi
    • Field Detail

      • ISSUER_RESPONSE_TYPE

        protected static final com.fasterxml.jackson.core.type.TypeReference<HashMap<String,​Object>> ISSUER_RESPONSE_TYPE
    • Constructor Detail

      • IssuerAwareJWTDecoderAdapter

        public IssuerAwareJWTDecoderAdapter​(String theIssuerURI)
      • IssuerAwareJWTDecoderAdapter

        public IssuerAwareJWTDecoderAdapter​(String theIssuerURI,
                                            boolean theIsDisableSSLValidation)
    • Method Detail

      • 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