Package net.shibboleth.idp.cas.flow.impl
Class BuildSamlValidationSuccessMessageAction
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.AbstractOutgoingSamlMessageAction
net.shibboleth.idp.cas.flow.impl.BuildSamlValidationSuccessMessageAction
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Creates the SAML response message for successful ticket validation at the
/samlValidate URI.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XMLObjectBuilder<XSString>Attribute value node builder.private final StringIdP entity ID used to set issuer field of generated assertions.private final IdentifierGenerationStrategySAML identifier generation strategy.private final org.slf4j.LoggerClass logger.private static final StringAttribute namespace. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ResponsebuildSamlResponse(ProfileRequestContext profileRequestContext) Build the SAML response.private XSStringnewAttributeValue(String value) Build new attribute value.private AuthenticationStatementnewAuthenticationStatement(Instant authnInstant, String authnMethod, String principal) Build new authentication statement.private SubjectnewSubject(String identifier) Build a new subject.Methods inherited from class net.shibboleth.idp.cas.flow.impl.AbstractOutgoingSamlMessageAction
doExecute, doInitialize, newSAMLObject, setOutgoingBindingMethods 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
doPreExecute, 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
-
NAMESPACE
Attribute namespace.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
attrValueBuilder
Attribute value node builder. -
identifierGenerationStrategy
SAML identifier generation strategy. -
entityID
IdP entity ID used to set issuer field of generated assertions.
-
-
Constructor Details
-
Method Details
-
buildSamlResponse
@Nonnull protected Response buildSamlResponse(@Nonnull ProfileRequestContext profileRequestContext) throws EventException Build the SAML response.- Specified by:
buildSamlResponsein classAbstractOutgoingSamlMessageAction- Parameters:
profileRequestContext- profile request context- Returns:
- SAML response
- Throws:
EventException- to signal an event
-
newSubject
Build a new subject.- Parameters:
identifier- subject identifier- Returns:
- new subject
-
newAuthenticationStatement
@Nonnull private AuthenticationStatement newAuthenticationStatement(@Nullable Instant authnInstant, @Nullable String authnMethod, @Nullable String principal) Build new authentication statement.- Parameters:
authnInstant- authentication instantauthnMethod- authentication methodprincipal- authenticated principal- Returns:
- new authentication statement
-
newAttributeValue
Build new attribute value.- Parameters:
value- attribute value- Returns:
- new attribute value
-