|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.ws.message.decoder.BaseMessageDecoder org.opensaml.common.binding.decoding.BaseSAMLMessageDecoder org.opensaml.saml2.binding.decoding.BaseSAML2MessageDecoder
public abstract class BaseSAML2MessageDecoder
Base class for SAML 2 message decoders.
Field Summary | |
---|---|
private org.slf4j.Logger |
log
Class logger. |
Constructor Summary | |
---|---|
BaseSAML2MessageDecoder()
Constructor. |
|
BaseSAML2MessageDecoder(ParserPool pool)
Constructor. |
Method Summary | |
---|---|
void |
decode(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. |
Methods inherited from class org.opensaml.common.binding.decoding.BaseSAMLMessageDecoder |
---|
checkEndpointURI, compareEndpointURIs, getActualReceiverEndpointURI, getURIComparator, isIntendedDestinationEndpointURIRequired, isMessageSigned, setURIComparator |
Methods inherited from class org.opensaml.ws.message.decoder.BaseMessageDecoder |
---|
doDecode, getParserPool, logDecodedMessage, processSecurityPolicy, setParserPool, unmarshallMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.common.binding.decoding.SAMLMessageDecoder |
---|
getBindingURI |
Field Detail |
---|
private final org.slf4j.Logger log
Constructor Detail |
---|
public BaseSAML2MessageDecoder()
public BaseSAML2MessageDecoder(ParserPool pool)
pool
- parser pool used to deserialize messagesMethod Detail |
---|
public void decode(MessageContext messageContext) throws MessageDecodingException, SecurityException
decode
in interface MessageDecoder
decode
in class BaseMessageDecoder
MessageDecodingException
SecurityException
protected void populateMessageContext(SAMLMessageContext messageContext) throws MessageDecodingException
messageContext
- message context to populate
MessageDecodingException
- thrown if there is a problem populating the message contextprotected void populateMessageIdIssueInstantIssuer(SAMLMessageContext messageContext) throws MessageDecodingException
messageContext
- current message context
MessageDecodingException
- thrown if there is a problem populating the message contextprotected void extractResponseInfo(SAMLMessageContext messageContext, StatusResponseType statusResponse) throws MessageDecodingException
messageContext
- current message contextstatusResponse
- the SAML message to process
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 MessageDecodingException
messageContext
- current message contextrequest
- the SAML message to process
MessageDecodingException
- thrown if the request issuer has a format other than NameIDType.ENTITY
protected String extractEntityId(Issuer issuer) throws MessageDecodingException
issuer
- issuer to extract the entityID from
MessageDecodingException
- thrown if the given issuer has a format other than NameIDType.ENTITY
protected void populateRelyingPartyMetadata(SAMLMessageContext messageContext) throws MessageDecodingException
messageContext
- current message context
MessageDecodingException
- thrown if there is a problem populating the message contextprotected String getIntendedDestinationEndpointURI(SAMLMessageContext samlMsgCtx) throws 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 processed
MessageDecodingException
- thrown if the message is not an instance of SAML message that
could be processed by the decoder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |