Class DefaultPushedAuthorizationRequestUriSerializationFunction
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.DefaultPushedAuthorizationRequestUriSerializationFunction
- All Implemented Interfaces:
BiFunction<ProfileRequestContext,,Map<String, Object>, URI> Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class DefaultPushedAuthorizationRequestUriSerializationFunction
extends AbstractPushedAuthorizationRequestComponent
implements BiFunction<ProfileRequestContext,Map<String,Object>,URI>
Default serialization function for the request URI claims set within OAuth2 PAR.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataSealerData sealer for encrypting the claims set.Strategy used to locate theIdentifierGenerationStrategyto use.private DurationThe lifetime for the sealed object.private final org.slf4j.LoggerClass logger.private com.fasterxml.jackson.databind.ObjectMapperObject mapper used for serializing the claims set.private booleanThe xmlSafe-flag passed to the identifier generator.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, Map<String, Object> claimsSet) protected voidvoidsetDataSealer(DataSealer sealer) Set the data sealer instance to use.voidsetIdentifierGeneratorLookupStrategy(Function<ProfileRequestContext, IdentifierGenerationStrategy> strategy) Set the strategy used to locate theIdentifierGenerationStrategyto use.voidsetLifetime(Duration duration) Set the lifetime for the sealed object.voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Set the object mapper used for serializing the claims set.voidsetXmlSafeIdentifier(boolean flag) Set the xmlSafe-flag passed to the identifier generatorMethods 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 encrypting the claims set. -
objectMapper
Object mapper used for serializing the claims set. -
idGeneratorLookupStrategy
@Nonnull private Function<ProfileRequestContext,IdentifierGenerationStrategy> idGeneratorLookupStrategyStrategy used to locate theIdentifierGenerationStrategyto use. -
xmlSafeIdentifier
private boolean xmlSafeIdentifierThe xmlSafe-flag passed to the identifier generator. -
lifetime
The lifetime for the sealed object.
-
-
Constructor Details
-
DefaultPushedAuthorizationRequestUriSerializationFunction
public DefaultPushedAuthorizationRequestUriSerializationFunction()Constructor.
-
-
Method Details
-
setObjectMapper
public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper) Set the object mapper used for serializing the claims set.- Parameters:
mapper- What to set.
-
setLifetime
Set the lifetime for the sealed object.- Parameters:
duration- What to set.
-
setIdentifierGeneratorLookupStrategy
public void setIdentifierGeneratorLookupStrategy(@Nonnull Function<ProfileRequestContext, IdentifierGenerationStrategy> strategy) Set the strategy used to locate theIdentifierGenerationStrategyto use.- Parameters:
strategy- lookup strategy
-
setXmlSafeIdentifier
public void setXmlSafeIdentifier(boolean flag) Set the xmlSafe-flag passed to the identifier generator- Parameters:
flag- xmlSafe-flag
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
apply
@Nullable public URI apply(@Nullable ProfileRequestContext profileRequestContext, @Nullable Map<String, Object> claimsSet) - Specified by:
applyin interfaceBiFunction<ProfileRequestContext,Map<String, Object>, URI>