Class ValidateRegistrationAccessToken
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.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>
net.shibboleth.idp.plugin.oidc.op.profile.impl.ValidateRegistrationAccessToken
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class ValidateRegistrationAccessToken
extends AbstractOIDCRequestAction<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>
Action that validates registration access token is a valid one. Token is valid if it is successfully unwrapped,
parsed as access token, is not expired, has not been revoked and contains relying party identifier. Validated
token is stored to under incoming message context
OIDCClientRegistrationTokenClaimsContext.getClaimsSet().-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe registration access token to be validated.private DataSealerData sealer for unwrapping authorization code.private org.slf4j.LoggerClass logger.private com.fasterxml.jackson.databind.ObjectMapperJSON object mapper.Strategy to create or return aOIDCClientRegistrationTokenClaimsContext.private RelyingPartyContextThe relying party context to operate on.Strategy that will return aRelyingPartyContext.private RevocationCacheMessage revocation cache instance to use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Set the JSONObjectMapper.voidsetRegistrationClaimsContextCreationStrategy(Function<ProfileRequestContext, OIDCClientRegistrationTokenClaimsContext> strategy) Set the strategy used to create or return theOIDCClientRegistrationTokenClaimsContext.voidSet the strategy used to return theRelyingPartyContext.voidSet the revocation cache instance to use.voidsetSealer(DataSealer sealer) Set the data sealer for handling access token.Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction
getRequestMethods 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, 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 org.slf4j.Logger logClass logger. -
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy that will return aRelyingPartyContext. -
registrationClaimsContextCreationStrategy
@Nonnull private Function<ProfileRequestContext,OIDCClientRegistrationTokenClaimsContext> registrationClaimsContextCreationStrategyStrategy to create or return aOIDCClientRegistrationTokenClaimsContext. -
dataSealer
Data sealer for unwrapping authorization code. -
revocationCache
Message revocation cache instance to use. -
objectMapper
JSON object mapper. -
relyingPartyContext
The relying party context to operate on. -
accessToken
The registration access token to be validated.
-
-
Constructor Details
-
ValidateRegistrationAccessToken
public ValidateRegistrationAccessToken()Constructor.
-
-
Method Details
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the strategy used to return theRelyingPartyContext.- Parameters:
strategy- lookup strategy
-
setRegistrationClaimsContextCreationStrategy
public void setRegistrationClaimsContextCreationStrategy(@Nonnull Function<ProfileRequestContext, OIDCClientRegistrationTokenClaimsContext> strategy) Set the strategy used to create or return theOIDCClientRegistrationTokenClaimsContext.- Parameters:
strategy- creation strategy
-
setObjectMapper
public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper) Set the JSONObjectMapper.- Parameters:
mapper- object mapper
-
setRevocationCache
Set the revocation cache instance to use.- Parameters:
cache- The revocationCache to set.
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractOIDCRequestAction<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-