/** * Loads incoming SAML message using one of the configured bindings and populates the SAMLMessageContext object with it. * * @param samlContext saml context * @param binding to use for message extraction * @return SAML message context with filled information about the message * @throws org.opensaml.common.SAMLException * error retrieving the message from the request * @throws org.opensaml.saml2.metadata.provider.MetadataProviderException * error retrieving metadat * @throws org.opensaml.ws.message.decoder.MessageDecodingException * error decoding the message * @throws org.opensaml.xml.security.SecurityException * error verifying message */ public SAMLMessageContext retrieveMessage(SAMLMessageContext samlContext, String binding) throws SAMLException, MetadataProviderException, MessageDecodingException, org.opensaml.xml.security.SecurityException { return retrieveMessage(samlContext, getBinding(binding)); }
/** * Loads incoming SAML message using one of the configured bindings and populates the SAMLMessageContext object with it. * * @param samlContext saml context * @return SAML message context with filled information about the message * @throws org.opensaml.common.SAMLException * error retrieving the message from the request * @throws org.opensaml.saml2.metadata.provider.MetadataProviderException * error retrieving metadat * @throws org.opensaml.ws.message.decoder.MessageDecodingException * error decoding the message * @throws org.opensaml.xml.security.SecurityException * error verifying message */ public SAMLMessageContext retrieveMessage(SAMLMessageContext samlContext) throws SAMLException, MetadataProviderException, MessageDecodingException, org.opensaml.xml.security.SecurityException { return retrieveMessage(samlContext, getBinding(samlContext.getInboundMessageTransport())); }