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:
Function<org.apache.hc.core5.http.ClassicHttpResponse,,com.nimbusds.oauth2.sdk.TokenResponse> Component,DestructableComponent,InitializableComponent
public class DefaultAccessTokenResponseDecoder
extends AbstractJSONResponseDecoderFunction<com.nimbusds.oauth2.sdk.TokenResponse>
Default access token response decoder, which converts a successful HTTP response into an
OIDCTokenResponse. Any decoding error is logged and null is returned.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.oauth2.sdk.TokenResponseapply(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
-
apply
@Nullable public com.nimbusds.oauth2.sdk.TokenResponse apply(@Nullable org.apache.hc.core5.http.ClassicHttpResponse httpResponse)
-