Package net.shibboleth.idp.cas.flow.impl
Class BuildSamlValidationSuccessMessageAction
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.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 String
IdP entity ID used to set issuer field of generated assertions.private final IdentifierGenerationStrategy
SAML identifier generation strategy.private final org.slf4j.Logger
Class logger.private static final String
Attribute namespace. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Response
buildSamlResponse
(ProfileRequestContext profileRequestContext) Build the SAML response.private XSString
newAttributeValue
(String value) Build new attribute value.private AuthenticationStatement
newAuthenticationStatement
(Instant authnInstant, String authnMethod, String principal) Build new authentication statement.private Subject
newSubject
(String identifier) Build a new subject.Methods inherited from class net.shibboleth.idp.cas.flow.impl.AbstractOutgoingSamlMessageAction
doExecute, doInitialize, newSAMLObject, setOutgoingBinding
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, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
doPreExecute, 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 Details
-
NAMESPACE
Attribute namespace.- See Also:
-
log
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
-
BuildSamlValidationSuccessMessageAction
public BuildSamlValidationSuccessMessageAction(@Nonnull IdentifierGenerationStrategy strategy, @Nonnull @NotEmpty String id) Constructor.- Parameters:
strategy
- SAML identifier generation strategy.id
- IdP entity ID.
-
-
Method Details
-
buildSamlResponse
@Nonnull protected Response buildSamlResponse(@Nonnull ProfileRequestContext profileRequestContext) throws EventException Description copied from class:AbstractOutgoingSamlMessageAction
Build the SAML response.- Specified by:
buildSamlResponse
in 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
private AuthenticationStatement newAuthenticationStatement(Instant authnInstant, String authnMethod, 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
-