Class AddResponseModeHandler
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
net.shibboleth.oidc.profile.messaging.handler.impl.AbstractAuthenticationRequestParameterValueMessageHandler<com.nimbusds.oauth2.sdk.ResponseMode>
net.shibboleth.oidc.profile.messaging.handler.impl.AddResponseModeHandler
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public class AddResponseModeHandler
extends AbstractAuthenticationRequestParameterValueMessageHandler<com.nimbusds.oauth2.sdk.ResponseMode>
A message handler that populates the authentication request response_type.
-
Field Summary
FieldsFields inherited from class net.shibboleth.oidc.profile.messaging.handler.impl.AbstractAuthenticationRequestParameterValueMessageHandler
PRC_LOOKUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckProviderSupportsResponseMode(com.nimbusds.oauth2.sdk.ResponseMode responseMode) Check the OpenID Provider supports the response_mode from its metadata value response_modes_supported.protected voiddoInvoke(MessageContext messageContext) Methods inherited from class net.shibboleth.oidc.profile.messaging.handler.impl.AbstractAuthenticationRequestParameterValueMessageHandler
doPreInvoke, getAuthenticationRequest, getParameterValue, getProviderMetadata, setAuthenticationRequestLookupStrategy, setParameterValueLookupStrategy, setProviderMetadataLookupStrategyMethods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, isPreInvokeCalled, setActivationConditionMethods 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 logLogger.
-
-
Constructor Details
-
AddResponseModeHandler
public AddResponseModeHandler()Constructor.
-
-
Method Details
-
doInvoke
- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
checkProviderSupportsResponseMode
private void checkProviderSupportsResponseMode(@Nonnull com.nimbusds.oauth2.sdk.ResponseMode responseMode) throws MessageHandlerException Check the OpenID Provider supports the response_mode from its metadata value response_modes_supported. Throws an exception if not.- Parameters:
responseMode- the response_mode to check is supported- Throws:
MessageHandlerException- if the OpenID Provider does not support the response_mode
-