Class AddIDTokenHintHandler
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
net.shibboleth.oidc.profile.messaging.handler.impl.AbstractLogoutRequestParameterValueMessageHandler<JWT>
net.shibboleth.oidc.profile.messaging.handler.impl.AddIDTokenHintHandler
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
A message handler that populates the id_token_hint parameter into the logout request.
-
Field Summary
FieldsFields inherited from class net.shibboleth.oidc.profile.messaging.handler.impl.AbstractLogoutRequestParameterValueMessageHandler
PRC_LOOKUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInvoke(MessageContext messageContext) private StringgetSubjectOrDefault(JWT idToken, String defaultSubject) Get the subject from the id_token, else return the default value.Methods inherited from class net.shibboleth.oidc.profile.messaging.handler.impl.AbstractLogoutRequestParameterValueMessageHandler
doInitialize, doPreInvoke, getLogoutRequest, getParameterValue, getProviderMetadata, setLogoutRequestLookupStrategy, 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, 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
-
AddIDTokenHintHandler
public AddIDTokenHintHandler()Constructor.
-
-
Method Details
-
doInvoke
- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
getSubjectOrDefault
Get the subject from the id_token, else return the default value.- Parameters:
idToken- the id_token to extract the subject fromdefaultSubject- the default subject to return if the subject can not be extracted- Returns:
- the subject, either from the id_token or the default value
-