Class IssuerAwareJWTDecoderAdapter
- java.lang.Object
-
- org.birchframework.security.oauth2.IssuerAwareJWTDecoderAdapter
-
- All Implemented Interfaces:
org.springframework.security.oauth2.jwt.JwtDecoder
public class IssuerAwareJWTDecoderAdapter extends Object implements org.springframework.security.oauth2.jwt.JwtDecoder
An implementation ofJwtDecoderthat 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classIssuerAwareJWTDecoderAdapter.DummyX509TrustManager
-
Field Summary
Fields Modifier and Type Field Description protected static com.fasterxml.jackson.core.type.TypeReference<HashMap<String,Object>>ISSUER_RESPONSE_TYPEstatic StringOIDC_METADATA_PATH
-
Constructor Summary
Constructors Constructor Description IssuerAwareJWTDecoderAdapter(String theIssuerURI)IssuerAwareJWTDecoderAdapter(String theIssuerURI, boolean theIsDisableSSLValidation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.jwt.Jwtdecode(String token)
-
-
-
Field Detail
-
OIDC_METADATA_PATH
public static final String OIDC_METADATA_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
decode
public org.springframework.security.oauth2.jwt.Jwt decode(String token) throws org.springframework.security.oauth2.jwt.JwtException
- Specified by:
decodein interfaceorg.springframework.security.oauth2.jwt.JwtDecoder- Throws:
org.springframework.security.oauth2.jwt.JwtException
-
-