Class StorageServicePushedAuthorizationRequestUriDeserializationFunction
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.plugin.oidc.op.profile.logic.AbstractPushedAuthorizationRequestComponent
net.shibboleth.idp.plugin.oidc.op.profile.logic.StorageServicePushedAuthorizationRequestUriDeserializationFunction
- All Implemented Interfaces:
BiFunction<ProfileRequestContext,,URI, Map<String, Object>> Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class StorageServicePushedAuthorizationRequestUriDeserializationFunction
extends AbstractPushedAuthorizationRequestComponent
implements BiFunction<ProfileRequestContext,URI,Map<String,Object>>
Default deserialization function for decoding the request URI into claims set within OAuth2 PAR.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private com.fasterxml.jackson.databind.ObjectMapperObject mapper used for deserializing the claims set.private StorageServiceStorage service used for storing the claims set on server-side.Fields inherited from class net.shibboleth.idp.plugin.oidc.op.profile.logic.AbstractPushedAuthorizationRequestComponent
PAR_REQUEST_URI_PREFIX, PAR_REQUEST_URI_STORAGE_PREFIX, STORAGE_CONTEXT_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext profileRequestContext, URI uri) protected voidvoidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Set the object mapper used for deserializing the claims set.voidsetStorageService(StorageService storage) Set theStorageServiceback-end to use.Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
objectMapper
Object mapper used for deserializing the claims set. -
storageService
Storage service used for storing the claims set on server-side.
-
-
Constructor Details
-
StorageServicePushedAuthorizationRequestUriDeserializationFunction
public StorageServicePushedAuthorizationRequestUriDeserializationFunction()
-
-
Method Details
-
setObjectMapper
public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper) Set the object mapper used for deserializing the claims set.- Parameters:
mapper- What to set.
-
setStorageService
Set theStorageServiceback-end to use.- Parameters:
storage- the back-end to use
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
apply
@Nullable public Map<String,Object> apply(@Nullable ProfileRequestContext profileRequestContext, @Nullable URI uri) - Specified by:
applyin interfaceBiFunction<ProfileRequestContext,URI, Map<String, Object>>
-