public abstract class BaseSAML2MessageDecoder extends BaseSAMLMessageDecoder
Constructor and Description |
---|
BaseSAML2MessageDecoder()
Constructor.
|
BaseSAML2MessageDecoder(org.opensaml.xml.parse.ParserPool pool)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(org.opensaml.ws.message.MessageContext messageContext) |
protected String |
extractEntityId(Issuer issuer)
Extracts the entity ID from the SAML 2 Issuer.
|
protected void |
extractRequestInfo(SAMLMessageContext messageContext,
RequestAbstractType request)
Extract information from a SAML RequestAbstractType message.
|
protected void |
extractResponseInfo(SAMLMessageContext messageContext,
StatusResponseType statusResponse)
Extract information from a SAML StatusResponse message.
|
protected String |
getIntendedDestinationEndpointURI(SAMLMessageContext samlMsgCtx)
Extract the message information which indicates to what receiver endpoint URI the
SAML message was intended to be delivered.
|
protected void |
populateMessageContext(SAMLMessageContext messageContext)
Populates the message context with the message ID, issue instant, and issuer as well as the peer's entity
descriptor if a metadata provider is present in the message context and the peer's role descriptor if its entity
descriptor was retrieved and the message context has a populated peer role name.
|
protected void |
populateMessageIdIssueInstantIssuer(SAMLMessageContext messageContext)
Extracts the message ID, issue instant, and issuer from the incoming SAML message and populates the message
context with it.
|
protected void |
populateRelyingPartyMetadata(SAMLMessageContext messageContext)
Populates the peer's entity metadata if a metadata provide is present in the message context.
|
checkEndpointURI, compareEndpointURIs, getActualReceiverEndpointURI, getURIComparator, isIntendedDestinationEndpointURIRequired, isMessageSigned, setURIComparator
doDecode, getParserPool, logDecodedMessage, processSecurityPolicy, setParserPool, unmarshallMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBindingURI
public BaseSAML2MessageDecoder()
public BaseSAML2MessageDecoder(org.opensaml.xml.parse.ParserPool pool)
pool
- parser pool used to deserialize messagespublic void decode(org.opensaml.ws.message.MessageContext messageContext) throws org.opensaml.ws.message.decoder.MessageDecodingException, org.opensaml.xml.security.SecurityException
decode
in interface org.opensaml.ws.message.decoder.MessageDecoder
decode
in class org.opensaml.ws.message.decoder.BaseMessageDecoder
org.opensaml.ws.message.decoder.MessageDecodingException
org.opensaml.xml.security.SecurityException
protected void populateMessageContext(SAMLMessageContext messageContext) throws org.opensaml.ws.message.decoder.MessageDecodingException
messageContext
- message context to populateorg.opensaml.ws.message.decoder.MessageDecodingException
- thrown if there is a problem populating the message contextprotected void populateMessageIdIssueInstantIssuer(SAMLMessageContext messageContext) throws org.opensaml.ws.message.decoder.MessageDecodingException
messageContext
- current message contextorg.opensaml.ws.message.decoder.MessageDecodingException
- thrown if there is a problem populating the message contextprotected void extractResponseInfo(SAMLMessageContext messageContext, StatusResponseType statusResponse) throws org.opensaml.ws.message.decoder.MessageDecodingException
messageContext
- current message contextstatusResponse
- the SAML message to processorg.opensaml.ws.message.decoder.MessageDecodingException
- thrown if the response issuer has a format other than NameIDType.ENTITY
or, if the response does not contain an issuer, if the contained assertions contain issuers that are
not of NameIDType.ENTITY
format or if the assertions contain different issuersprotected void extractRequestInfo(SAMLMessageContext messageContext, RequestAbstractType request) throws org.opensaml.ws.message.decoder.MessageDecodingException
messageContext
- current message contextrequest
- the SAML message to processorg.opensaml.ws.message.decoder.MessageDecodingException
- thrown if the request issuer has a format other than NameIDType.ENTITY
protected String extractEntityId(Issuer issuer) throws org.opensaml.ws.message.decoder.MessageDecodingException
issuer
- issuer to extract the entityID fromorg.opensaml.ws.message.decoder.MessageDecodingException
- thrown if the given issuer has a format other than NameIDType.ENTITY
protected void populateRelyingPartyMetadata(SAMLMessageContext messageContext) throws org.opensaml.ws.message.decoder.MessageDecodingException
messageContext
- current message contextorg.opensaml.ws.message.decoder.MessageDecodingException
- thrown if there is a problem populating the message contextprotected String getIntendedDestinationEndpointURI(SAMLMessageContext samlMsgCtx) throws org.opensaml.ws.message.decoder.MessageDecodingException
This SAML 2-specific implementation extracts the value of the protocol message Destination attribute.
getIntendedDestinationEndpointURI
in class BaseSAMLMessageDecoder
samlMsgCtx
- the SAML message context being processedorg.opensaml.ws.message.decoder.MessageDecodingException
- thrown if the message is not an instance of SAML message that
could be processed by the decoderCopyright © 1999-2013. All Rights Reserved.