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 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_PARAM -
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 StringGet the string representation of what will be logged as the protocol message.protected voidpopulateBindingContext(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, setBindingDescriptorMethods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
doInitialize, getHttpServletRequest, getHttpServletRequestSupplier, setHttpServletRequest, setHttpServletRequestSupplierMethods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
doDestroy, getMessageContext, setMessageContextMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, 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.utilities.java.support.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.utilities.java.support.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
-
getMessageToLog
Get the string representation of what will be logged as the protocol message.- Specified by:
getMessageToLogin classBaseIdPInitiatedSSORequestMessageDecoder- Returns:
- the string representing the protocol message for logging purposes
-