Class ValidateRegistrationAccessToken
- java.lang.Object
-
- net.shibboleth.utilities.java.support.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 contextOIDCClientRegistrationTokenClaimsContext.getClaimsSet().
-
-
Field Summary
Fields Modifier and Type Field Description private StringaccessTokenThe registration access token to be validated.private DataSealerdataSealerData sealer for unwrapping authorization code.private org.slf4j.LoggerlogClass logger.private com.fasterxml.jackson.databind.ObjectMapperobjectMapperJSON object mapper.private Function<ProfileRequestContext,OIDCClientRegistrationTokenClaimsContext>registrationClaimsContextCreationStrategyStrategy to create or return aOIDCClientRegistrationTokenClaimsContext.private net.shibboleth.idp.profile.context.RelyingPartyContextrelyingPartyContextThe relying party context to operate on.private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext>relyingPartyContextLookupStrategyStrategy that will return aRelyingPartyContext.private RevocationCacherevocationCacheMessage revocation cache instance to use.
-
Constructor Summary
Constructors Constructor Description ValidateRegistrationAccessToken()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()protected 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.voidsetRelyingPartyContextLookupStrategy(Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)Set the strategy used to return theRelyingPartyContext.voidsetRevocationCache(RevocationCache cache)Set 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
getRequest
-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
Strategy that will return aRelyingPartyContext.
-
registrationClaimsContextCreationStrategy
@Nonnull private Function<ProfileRequestContext,OIDCClientRegistrationTokenClaimsContext> registrationClaimsContextCreationStrategy
Strategy to create or return aOIDCClientRegistrationTokenClaimsContext.
-
dataSealer
@NonnullAfterInit private DataSealer dataSealer
Data sealer for unwrapping authorization code.
-
revocationCache
@NonnullAfterInit private RevocationCache revocationCache
Message revocation cache instance to use.
-
objectMapper
@NonnullAfterInit private com.fasterxml.jackson.databind.ObjectMapper objectMapper
JSON object mapper.
-
relyingPartyContext
@Nullable private net.shibboleth.idp.profile.context.RelyingPartyContext relyingPartyContext
The relying party context to operate on.
-
-
Method Detail
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.idp.profile.context.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
-
setSealer
public void setSealer(@Nonnull DataSealer sealer)Set the data sealer for handling access token.- Parameters:
sealer- data sealer.
-
setObjectMapper
public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper)Set the JSONObjectMapper.- Parameters:
mapper- object mapper
-
setRevocationCache
public void setRevocationCache(@Nonnull RevocationCache cache)Set the revocation cache instance to use.- Parameters:
cache- The revocationCache to set.
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractOIDCRequestAction<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-