Class IdPInitiatedSSORequestMessageDecoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
net.shibboleth.idp.saml.profile.impl.BaseIdPInitiatedSSORequestMessageDecoder
net.shibboleth.idp.saml.saml2.profile.impl.IdPInitiatedSSORequestMessageDecoder
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageDecoder,HttpServletRequestMessageDecoder,SAMLMessageDecoder
public class IdPInitiatedSSORequestMessageDecoder
extends BaseIdPInitiatedSSORequestMessageDecoder
implements SAMLMessageDecoder
Decodes an incoming Shibboleth Authentication Request message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringProtocol binding implemented by this decoder.private final SAMLObjectBuilder<Issuer>Builder of SAML 2Issuerobjects.private final org.slf4j.LoggerClass logger.private final SAMLObjectBuilder<NameIDPolicy>Builder of SAML 2NameIDPolicyobjects.private final SAMLObjectBuilder<AuthnRequest>Builder of SAML 2AuthnRequestobjects.private IdPInitiatedSSORequestThe IdP-initiated request structure parsed from the inbound request.Fields inherited from class net.shibboleth.idp.saml.profile.impl.BaseIdPInitiatedSSORequestMessageDecoder
PROVIDER_ID_PARAM, SHIRE_PARAM, TARGET_PARAM, TIME_PARAMFields inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
BASE_PROTOCOL_MESSAGE_LOGGER_CATEGORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AuthnRequestBuild a synthetic AuthnRequest instance from the IdP-initiated SSO request structure.protected voiddoDecode()protected IdPInitiatedSSORequestGet the internally constructed instance ofIdPInitiatedSSORequest.protected voidpopulateBindingContext(MessageContext messageContext) Populate the context which carries information specific to this binding.protected StringserializeMessageForLogging(Object message) Methods inherited from class net.shibboleth.idp.saml.profile.impl.BaseIdPInitiatedSSORequestMessageDecoder
buildIdPInitiatedSSORequest, decode, getAcsUrl, getBindingDescriptor, getEntityId, getMessageID, getTarget, getTime, setBindingDescriptorMethods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
doInitialize, getHttpServletRequest, getHttpServletRequestSupplier, setHttpServletRequestSupplierMethods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
getMessageContext, getMessageToLog, getProtocolMessageLogger, getProtocolMessageLoggerSubCategory, logDecodedMessage, setMessageContext, setProtocolMessageLoggerSubCategoryMethods 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.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitializedMethods inherited from interface org.opensaml.messaging.decoder.MessageDecoder
decode, getMessageContext
-
Field Details
-
BINDING_URI
Protocol binding implemented by this decoder.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
requestBuilder
Builder of SAML 2AuthnRequestobjects. -
issuerBuilder
Builder of SAML 2Issuerobjects. -
nipBuilder
Builder of SAML 2NameIDPolicyobjects. -
ssoRequest
The IdP-initiated request structure parsed from the inbound request.
-
-
Constructor Details
-
IdPInitiatedSSORequestMessageDecoder
public IdPInitiatedSSORequestMessageDecoder()Constructor.
-
-
Method Details
-
getBindingURI
- Specified by:
getBindingURIin interfaceSAMLMessageDecoder
-
getIdPInitiatedSSORequest
Get the internally constructed instance ofIdPInitiatedSSORequest.- Returns:
- the internal SSO request instance
-
doDecode
- Specified by:
doDecodein classAbstractMessageDecoder- Throws:
MessageDecodingException
-
buildAuthnRequest
Build a synthetic AuthnRequest instance from the IdP-initiated SSO request structure.- Returns:
- the synthetic AuthnRequest message instance
- Throws:
MessageDecodingException- if the inbound request does not contain an entityID value
-
populateBindingContext
Populate the context which carries information specific to this binding.- Parameters:
messageContext- the current message context
-
serializeMessageForLogging
- Overrides:
serializeMessageForLoggingin classAbstractMessageDecoder
-