Class DefaultPushedAuthorizationRequestUriDeserializationFunction
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.DefaultPushedAuthorizationRequestUriDeserializationFunction
- All Implemented Interfaces:
BiFunction<ProfileRequestContext,,URI, Map<String, Object>> Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class DefaultPushedAuthorizationRequestUriDeserializationFunction
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 DataSealerData sealer for decrypting the contents of the claims set.private DurationThe lifetime for replay cache record.private final org.slf4j.LoggerClass logger.private com.fasterxml.jackson.databind.ObjectMapperObject mapper used for deserializing the claims set.private ReplayCacheMessage replay cache instance to use.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 voidvoidsetDataSealer(DataSealer sealer) Set the data sealer instance to use.voidsetLifetime(Duration duration) Set the lifetime for replay cache record.voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Set the object mapper used for deserializing the claims set.voidsetReplayCache(ReplayCache cache) Set the replay cache instance 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. -
dataSealer
Data sealer for decrypting the contents of the claims set. -
objectMapper
Object mapper used for deserializing the claims set. -
replayCache
Message replay cache instance to use. -
lifetime
The lifetime for replay cache record.
-
-
Constructor Details
-
DefaultPushedAuthorizationRequestUriDeserializationFunction
public DefaultPushedAuthorizationRequestUriDeserializationFunction()Constructor.
-
-
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.
-
setReplayCache
Set the replay cache instance to use.- Parameters:
cache- The replayCache to set.
-
setLifetime
Set the lifetime for replay cache record.- Parameters:
duration- What to set.
-
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>>