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
Fields Modifier and Type Field Description private static StringBINDING_URIProtocol binding implemented by this decoder.private SAMLObjectBuilder<Issuer>issuerBuilderBuilder of SAML 2Issuerobjects.private org.slf4j.LoggerlogClass logger.private SAMLObjectBuilder<NameIDPolicy>nipBuilderBuilder of SAML 2NameIDPolicyobjects.private SAMLObjectBuilder<AuthnRequest>requestBuilderBuilder of SAML 2AuthnRequestobjects.private IdPInitiatedSSORequestssoRequestThe 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 Constructor Description IdPInitiatedSSORequestMessageDecoder()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthnRequestbuildAuthnRequest()Build a synthetic AuthnRequest instance from the IdP-initiated SSO request structure.protected voiddoDecode()StringgetBindingURI()protected IdPInitiatedSSORequestgetIdPInitiatedSSORequest()Get the internally constructed instance ofIdPInitiatedSSORequest.protected StringgetMessageToLog()Get 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, 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 Detail
-
BINDING_URI
@Nonnull @NotEmpty private static final String BINDING_URI
Protocol binding implemented by this decoder.- See Also:
- Constant Field Values
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
requestBuilder
private final SAMLObjectBuilder<AuthnRequest> requestBuilder
Builder of SAML 2AuthnRequestobjects.
-
issuerBuilder
private final SAMLObjectBuilder<Issuer> issuerBuilder
Builder of SAML 2Issuerobjects.
-
nipBuilder
private final SAMLObjectBuilder<NameIDPolicy> nipBuilder
Builder of SAML 2NameIDPolicyobjects.
-
ssoRequest
@Nullable private IdPInitiatedSSORequest ssoRequest
The IdP-initiated request structure parsed from the inbound request.
-
-
Method Detail
-
getBindingURI
@Nonnull @NotEmpty public String getBindingURI()
- Specified by:
getBindingURIin interfaceSAMLMessageDecoder
-
getIdPInitiatedSSORequest
@Nullable protected IdPInitiatedSSORequest getIdPInitiatedSSORequest()
Get the internally constructed instance ofIdPInitiatedSSORequest.- Returns:
- the internal SSO request instance
-
doDecode
protected void doDecode() throws MessageDecodingException- Specified by:
doDecodein classAbstractMessageDecoder- Throws:
MessageDecodingException
-
buildAuthnRequest
@Nonnull protected AuthnRequest buildAuthnRequest() throws MessageDecodingException
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
protected void populateBindingContext(@Nonnull MessageContext messageContext)Populate the context which carries information specific to this binding.- Parameters:
messageContext- the current message context
-
getMessageToLog
@Nullable protected String 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
-
-