Class DefaultAccessTokenResponseDecoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.authn.oidc.rp.decoding.impl.AbstractJSONResponseDecoderFunction<com.nimbusds.oauth2.sdk.TokenResponse>
net.shibboleth.idp.plugin.authn.oidc.rp.decoding.impl.DefaultAccessTokenResponseDecoder
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,org.apache.hc.core5.http.io.HttpClientResponseHandler<com.nimbusds.oauth2.sdk.TokenResponse>
public class DefaultAccessTokenResponseDecoder
extends AbstractJSONResponseDecoderFunction<com.nimbusds.oauth2.sdk.TokenResponse>
Default access token response decoder which converts a successful HTTP response into an
OIDCTokenResponse and a unsuccessful response into an TokenErrorResponse.
Any decoding error is logged and null is returned.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.oauth2.sdk.TokenResponsehandleResponse(org.apache.hc.core5.http.ClassicHttpResponse httpResponse) Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.decoding.impl.AbstractJSONResponseDecoderFunction
doInitialize, getObjectMapper, setObjectMapperMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
DefaultAccessTokenResponseDecoder
public DefaultAccessTokenResponseDecoder()
-
-
Method Details
-
handleResponse
public com.nimbusds.oauth2.sdk.TokenResponse handleResponse(org.apache.hc.core5.http.ClassicHttpResponse httpResponse) throws org.apache.hc.core5.http.HttpException, IOException - Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-