Class IdPInitiatedSSORequestMessageDecoder
java.lang.Object
net.shibboleth.utilities.java.support.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 String
Protocol binding implemented by this decoder.private final SAMLObjectBuilder<Issuer>
Builder of SAML 2Issuer
objects.private final org.slf4j.Logger
Class logger.private final SAMLObjectBuilder<NameIDPolicy>
Builder of SAML 2NameIDPolicy
objects.private final SAMLObjectBuilder<AuthnRequest>
Builder of SAML 2AuthnRequest
objects.private IdPInitiatedSSORequest
The 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_PARAM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AuthnRequest
Build a synthetic AuthnRequest instance from the IdP-initiated SSO request structure.protected void
doDecode()
protected IdPInitiatedSSORequest
Get the internally constructed instance ofIdPInitiatedSSORequest
.protected String
Get the string representation of what will be logged as the protocol message.protected void
populateBindingContext
(MessageContext messageContext) Populate the context which carries information specific to this binding.Methods inherited from class net.shibboleth.idp.saml.profile.impl.BaseIdPInitiatedSSORequestMessageDecoder
buildIdPInitiatedSSORequest, decode, getAcsUrl, getBindingDescriptor, getEntityId, getMessageID, getTarget, getTime, logDecodedMessage, setBindingDescriptor
Methods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
doDestroy, doInitialize, getHttpServletRequest, setHttpServletRequest
Methods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
getMessageContext, setMessageContext
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, 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.DestructableComponent
destroy, isDestroyed
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
Methods 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 2AuthnRequest
objects. -
issuerBuilder
Builder of SAML 2Issuer
objects. -
nipBuilder
Builder of SAML 2NameIDPolicy
objects. -
ssoRequest
The IdP-initiated request structure parsed from the inbound request.
-
-
Constructor Details
-
IdPInitiatedSSORequestMessageDecoder
public IdPInitiatedSSORequestMessageDecoder()Constructor.
-
-
Method Details
-
getBindingURI
- Specified by:
getBindingURI
in interfaceSAMLMessageDecoder
-
getIdPInitiatedSSORequest
Get the internally constructed instance ofIdPInitiatedSSORequest
.- Returns:
- the internal SSO request instance
-
doDecode
- Specified by:
doDecode
in 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
-
getMessageToLog
Get the string representation of what will be logged as the protocol message.- Specified by:
getMessageToLog
in classBaseIdPInitiatedSSORequestMessageDecoder
- Returns:
- the string representing the protocol message for logging purposes
-