Class AbstractJSONResponseDecoderFunction<T>
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.authn.oidc.rp.decoding.impl.AbstractJSONResponseDecoderFunction<T>
- Type Parameters:
T- the return type of the function.
- All Implemented Interfaces:
Function<org.apache.hc.core5.http.ClassicHttpResponse,,T> Component,DestructableComponent,InitializableComponent
- Direct Known Subclasses:
DefaultAccessTokenResponseDecoder,DefaultUserInfoResponseDecoder
public abstract class AbstractJSONResponseDecoderFunction<T>
extends AbstractInitializableComponent
implements Function<org.apache.hc.core5.http.ClassicHttpResponse,T>
Abstract class for JSON based response decoders.
Note, the Http Response should not be closed inside a decoder implementation, but MUST be closed by the calling class. However, any input stream obtained by the decoder MUST ensure the stream is closed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.fasterxml.jackson.databind.ObjectMapperJSON object mapper. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected com.fasterxml.jackson.databind.ObjectMapperGet the object mapper.voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Set the JSON Object Mapper to use.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
objectMapper
JSON object mapper.
-
-
Constructor Details
-
AbstractJSONResponseDecoderFunction
public AbstractJSONResponseDecoderFunction()
-
-
Method Details
-
setObjectMapper
public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper) Set the JSON Object Mapper to use.- Parameters:
mapper- the object mapper.
-
getObjectMapper
Get the object mapper.- Returns:
- the object mapper.
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-