Package net.shibboleth.idp.cas.flow.impl
Class PrepareTicketValidationResponseAction
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.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>
Prepares
TicketValidationResponse for use in CAS protocol response views. Possible outcomes:
nullon successIllegalState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AttributeContextStored off context from request.Function used to retrieve AttributeContext.private final ConfigLookupFunction<ValidateConfiguration>Profile configuration lookup function.Stored consented attributes from ticket.private TranscodingRuleFallback rule that does a simple/default encode.private final org.slf4j.LoggerClass logger.private Function<ProfileRequestContext,String> Function used to retrieve subject principal.private TicketValidationResponseCAS response.Transcoder registry service object.private ValidateConfigurationProfile configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected 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.voidSets 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, setCASTicketMethods 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 final org.slf4j.Logger logClass logger. -
attributeContextFunction
Function used to retrieve AttributeContext. -
principalLookupFunction
Function used to retrieve subject principal. -
configLookupFunction
Profile configuration lookup function. -
transcoderRegistry
Transcoder registry service object. -
defaultTranscodingRule
Fallback rule that does a simple/default encode. -
attributeContext
Stored off context from request. -
consentedAttributeIds
Stored consented attributes from ticket. -
validateConfiguration
Profile configuration. -
ticketValidationResponse
CAS response.
-
-
Constructor Details
-
PrepareTicketValidationResponseAction
public PrepareTicketValidationResponseAction()Constructor.
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-
encodeAttribute
protected int encodeAttribute(@Nonnull AttributeTranscoderRegistry registry, @Nonnull ProfileRequestContext profileRequestContext, @Nonnull IdPAttribute attribute, @Nonnull @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