Package net.shibboleth.idp.cas.flow.impl
Class PrepareTicketValidationResponseAction
- 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.cas.flow.impl.AbstractCASProtocolAction<TicketValidationRequest,TicketValidationResponse>
-
- net.shibboleth.idp.cas.flow.impl.PrepareTicketValidationResponseAction
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class PrepareTicketValidationResponseAction extends AbstractCASProtocolAction<TicketValidationRequest,TicketValidationResponse>
PreparesTicketValidationResponsefor use in CAS protocol response views. Possible outcomes:nullon successIllegalState
-
-
Field Summary
Fields Modifier and Type Field Description private AttributeContextattributeContextStored off context from request.private Function<ProfileRequestContext,AttributeContext>attributeContextFunctionFunction used to retrieve AttributeContext.private ConfigLookupFunction<ValidateConfiguration>configLookupFunctionProfile configuration lookup function.private Set<String>consentedAttributeIdsStored consented attributes from ticket.private TranscodingRuledefaultTranscodingRuleFallback rule that does a simple/default encode.private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,String>principalLookupFunctionFunction used to retrieve subject principal.private TicketValidationResponseresponseCAS response.private ReloadableService<AttributeTranscoderRegistry>transcoderRegistryTranscoder registry service object.private ValidateConfigurationvalidateConfigurationProfile configuration.
-
Constructor Summary
Constructors Constructor Description PrepareTicketValidationResponseAction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()protected booleandoPreExecute(ProfileRequestContext profileRequestContext)protected intencodeAttribute(AttributeTranscoderRegistry registry, ProfileRequestContext profileRequestContext, IdPAttribute attribute, Collection<Attribute> results)Access the registry of transcoding rules to transform the input attribute into a target type.voidsetTranscoderRegistry(ReloadableService<AttributeTranscoderRegistry> registry)Sets the registry of transcoding rules to apply to encode attributes.-
Methods inherited from class net.shibboleth.idp.cas.flow.impl.AbstractCASProtocolAction
getCASRequest, getCASResponse, getCASService, getCASTicket, getProtocolContext, setCASRequest, setCASResponse, setCASService, setCASTicket
-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, 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, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplier
-
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 final org.slf4j.Logger log
Class logger.
-
attributeContextFunction
@Nonnull private Function<ProfileRequestContext,AttributeContext> attributeContextFunction
Function used to retrieve AttributeContext.
-
principalLookupFunction
@Nonnull private Function<ProfileRequestContext,String> principalLookupFunction
Function used to retrieve subject principal.
-
configLookupFunction
@Nonnull private final ConfigLookupFunction<ValidateConfiguration> configLookupFunction
Profile configuration lookup function.
-
transcoderRegistry
@NonnullAfterInit private ReloadableService<AttributeTranscoderRegistry> transcoderRegistry
Transcoder registry service object.
-
defaultTranscodingRule
@NonnullAfterInit private TranscodingRule defaultTranscodingRule
Fallback rule that does a simple/default encode.
-
attributeContext
@Nullable private AttributeContext attributeContext
Stored off context from request.
-
consentedAttributeIds
@Nullable private Set<String> consentedAttributeIds
Stored consented attributes from ticket.
-
validateConfiguration
@Nullable private ValidateConfiguration validateConfiguration
Profile configuration.
-
response
@Nullable private TicketValidationResponse response
CAS response.
-
-
Method Detail
-
setTranscoderRegistry
public void setTranscoderRegistry(@Nonnull ReloadableService<AttributeTranscoderRegistry> registry)Sets the registry of transcoding rules to apply to encode attributes.- Parameters:
registry- registry service interface
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
encodeAttribute
protected int encodeAttribute(@Nonnull AttributeTranscoderRegistry registry, @Nonnull ProfileRequestContext profileRequestContext, @Nonnull IdPAttribute attribute, @Nonnull @NonnullElements @Live Collection<Attribute> results)Access the registry of transcoding rules to transform the input attribute into a target type.- Parameters:
registry- registry of transcoding rulesprofileRequestContext- current profile request contextattribute- input attributeresults- collection to add results to- Returns:
- number of results added
-
-