|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.ws.message.decoder.BaseMessageDecoder
org.opensaml.common.binding.decoding.BaseSAMLMessageDecoder
org.opensaml.saml1.binding.decoding.BaseSAML1MessageDecoder
public abstract class BaseSAML1MessageDecoder
Base class for SAML 1 message decoders.
| Constructor Summary | |
|---|---|
BaseSAML1MessageDecoder()
Constructor. |
|
BaseSAML1MessageDecoder(org.opensaml.xml.parse.ParserPool pool)
Constructor. |
|
BaseSAML1MessageDecoder(SAMLArtifactMap map)
Deprecated. |
|
BaseSAML1MessageDecoder(SAMLArtifactMap map,
org.opensaml.xml.parse.ParserPool pool)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
decode(org.opensaml.ws.message.MessageContext messageContext)
|
protected void |
extractAssertionArtifactInfo(SAMLMessageContext messageContext,
java.util.List<AssertionArtifact> artifacts)
Extract the issuer, and populate message context, as the relying party corresponding to the first AssertionArtifact in the message. |
protected void |
extractAttributeQueryInfo(SAMLMessageContext messageContext,
AttributeQuery query)
Extract the issuer, and populate message context, from the Resource attribute of the Attribute query if useQueryResourceAsEntityId is true. |
protected void |
extractAuthorizationDecisionQueryInfo(SAMLMessageContext messageContext,
AuthorizationDecisionQuery query)
Extract the issuer, and populate message context, from the Resource attribute of the AuthorizationDecisionQuery query if useQueryResourceAsEntityId is true. |
protected void |
extractRequestInfo(SAMLMessageContext messageContext,
RequestAbstractType abstractRequest)
Extract information from a SAML RequestAbstractType message. |
protected void |
extractResponseInfo(SAMLMessageContext messageContext,
Response response)
Extract information from a SAML StatusResponse message. |
SAMLArtifactMap |
getArtifactMap()
Gets the artifact map used to retrieve SAML information from an artifact. |
protected java.lang.String |
getIntendedDestinationEndpointURI(SAMLMessageContext samlMsgCtx)
Extract the message information which indicates to what receiver endpoint URI the SAML message was intended to be delivered. |
boolean |
getUseQueryResourceAsEntityId()
Gets whether to use the Resource attribute of some SAML 1 queries as the entity ID of the inbound message issuer. |
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. |
void |
setUseQueryResourceAsEntityId(boolean useResource)
Sets whether to use the Resource attribute of some SAML 1 queries as the entity ID of the inbound message issuer. |
| 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 |
| Constructor Detail |
|---|
public BaseSAML1MessageDecoder()
public BaseSAML1MessageDecoder(org.opensaml.xml.parse.ParserPool pool)
pool - parser pool used to deserialize messagespublic BaseSAML1MessageDecoder(SAMLArtifactMap map)
map - used to map artifacts to SAML
public BaseSAML1MessageDecoder(SAMLArtifactMap map,
org.opensaml.xml.parse.ParserPool pool)
map - used to map artifacts to SAMLpool - parser pool used to deserialize messages| Method Detail |
|---|
public 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.MessageDecoderdecode in class org.opensaml.ws.message.decoder.BaseMessageDecoderorg.opensaml.ws.message.decoder.MessageDecodingException
org.opensaml.xml.security.SecurityExceptionpublic SAMLArtifactMap getArtifactMap()
public boolean getUseQueryResourceAsEntityId()
public void setUseQueryResourceAsEntityId(boolean useResource)
useResource - whether to use the Resource attribute of some SAML 1 queries as the entity ID of the inbound
message issuer
protected void populateMessageContext(SAMLMessageContext messageContext)
throws org.opensaml.ws.message.decoder.MessageDecodingException
messageContext - message context to populate
org.opensaml.ws.message.decoder.MessageDecodingException - thrown if there is a problem populating the message context
protected void populateMessageIdIssueInstantIssuer(SAMLMessageContext messageContext)
throws org.opensaml.ws.message.decoder.MessageDecodingException
messageContext - current message context
org.opensaml.ws.message.decoder.MessageDecodingException - thrown if there is a problem populating the message context
protected void extractRequestInfo(SAMLMessageContext messageContext,
RequestAbstractType abstractRequest)
messageContext - current message contextabstractRequest - the SAML message to process
protected void extractAttributeQueryInfo(SAMLMessageContext messageContext,
AttributeQuery query)
useQueryResourceAsEntityId is true.
messageContext - current message contextquery - query to extract resource name from
protected void extractAuthorizationDecisionQueryInfo(SAMLMessageContext messageContext,
AuthorizationDecisionQuery query)
useQueryResourceAsEntityId is true.
messageContext - current message contextquery - query to extract resource name from
protected void extractAssertionArtifactInfo(SAMLMessageContext messageContext,
java.util.List<AssertionArtifact> artifacts)
messageContext - current message contextartifacts - AssertionArtifacts in the request
protected void extractResponseInfo(SAMLMessageContext messageContext,
Response response)
throws org.opensaml.ws.message.decoder.MessageDecodingException
messageContext - current message contextresponse - the SAML message to process
org.opensaml.ws.message.decoder.MessageDecodingException - thrown if the assertions within the response contain differening issuer IDs
protected void populateRelyingPartyMetadata(SAMLMessageContext messageContext)
throws org.opensaml.ws.message.decoder.MessageDecodingException
messageContext - current message context
org.opensaml.ws.message.decoder.MessageDecodingException - thrown if there is a problem populating the message context
protected java.lang.String getIntendedDestinationEndpointURI(SAMLMessageContext samlMsgCtx)
throws org.opensaml.ws.message.decoder.MessageDecodingException
This SAML 1-specific implementation extracts the value of the ResponseAbstractType protocol message Recipient attribute.
getIntendedDestinationEndpointURI in class BaseSAMLMessageDecodersamlMsgCtx - the SAML message context being processed
org.opensaml.ws.message.decoder.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 | |||||||||