Package net.shibboleth.oidc.profile.impl
Class FormOutboundKeySetResponseMessage
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.oidc.profile.impl.FormOutboundKeySetResponseMessage
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Action that forms outbound message containing keyset. Keys of the keyset are located from security configuration
via a lookup strategy. The built response is set on to the
InOutOperationContext.getOutboundMessageContext().- Since:
- 2.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<JSONSecurityConfiguration,List<Credential>> Strategy used to locate the list of credentials to publish.private final org.slf4j.LoggerClass logger.Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.private JSONSecurityConfigurationSecurity configuration we look for keys to publish. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconvertAndPublishToList(List<Credential> credentials, List<JWK> publishList) Converts the given credentials into JWK and adds all the successfully converted JWKs to the given list.protected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidsetCredentialsToPublishLookupStrategy(Function<JSONSecurityConfiguration, List<Credential>> strategy) Set the strategy used to locate the credentials to publish at the KeySet endpoint.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext. -
credentialsToPublishLookupStrategy
@Nonnull private Function<JSONSecurityConfiguration,List<Credential>> credentialsToPublishLookupStrategyStrategy used to locate the list of credentials to publish. -
secConfiguration
Security configuration we look for keys to publish.
-
-
Constructor Details
-
FormOutboundKeySetResponseMessage
public FormOutboundKeySetResponseMessage()Constructor.
-
-
Method Details
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext
-
setCredentialsToPublishLookupStrategy
public void setCredentialsToPublishLookupStrategy(@Nonnull Function<JSONSecurityConfiguration, List<Credential>> strategy) Set the strategy used to locate the credentials to publish at the KeySet endpoint.- Parameters:
strategy- the strategy.
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-
convertAndPublishToList
Converts the given credentials into JWK and adds all the successfully converted JWKs to the given list.- Parameters:
credentials- The list of credentials to be converted to JWKs.publishList- The list where the successfully converted JWKs are put.
-