|
||||||||||
| 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.saml2.binding.decoding.BaseSAML2MessageDecoder
edu.internet2.middleware.shibboleth.idp.profile.saml2.UnsolicitedSSODecoder
public class UnsolicitedSSODecoder
Shibboleth 2.x HTTP request parameter-based SSO authentication request message decoder.
This decoder understands and processes a set of defined HTTP request parameters representing a logical
SAML 2 SSO authentication request, and builds a corresponding AuthnRequest message.
This message is then stored in the SAMLMessageContext so that it may be processed
by other components (e.g. profile handler) that process standard AuthnRequest messages.
| Field Summary | |
|---|---|
private SAMLObjectBuilder<AuthnRequest> |
authnRequestBuilder
AuthnRequest builder. |
private String |
defaultBinding
The binding URI default value. |
private IdentifierGenerator |
idGenerator
Identifier generator. |
private SAMLObjectBuilder<Issuer> |
issuerBuilder
Issuer builder. |
private org.slf4j.Logger |
log
Class logger. |
private SAMLObjectBuilder<NameIDPolicy> |
nipBuilder
NameIDPolicy builder. |
| Constructor Summary | |
|---|---|
UnsolicitedSSODecoder(IdentifierGenerator identifierGenerator)
Constructor. |
|
| Method Summary | |
|---|---|
private AuthnRequest |
buildAuthnRequest(String entityID,
String acsURL,
String acsBinding,
String timeStr,
String sessionID)
Build a SAML 2 AuthnRequest from the parameters specified in the inbound transport. |
protected void |
doDecode(MessageContext messageContext)
|
String |
getBindingURI()
|
String |
getDefaultBinding()
Returns the default ACS binding. |
protected String |
getIntendedDestinationEndpointURI(SAMLMessageContext samlMsgCtx)
|
protected boolean |
isIntendedDestinationEndpointURIRequired(SAMLMessageContext samlMsgCtx)
|
private String |
lookupACSURL(MetadataProvider mdProvider,
String entityId)
Lookup the ACS URL for the specified SP entityID and binding URI. |
void |
setDefaultBinding(String binding)
Sets the default ACS binding. |
| Methods inherited from class org.opensaml.saml2.binding.decoding.BaseSAML2MessageDecoder |
|---|
decode, extractEntityId, extractRequestInfo, extractResponseInfo, populateMessageContext, populateMessageIdIssueInstantIssuer, populateRelyingPartyMetadata |
| Methods inherited from class org.opensaml.common.binding.decoding.BaseSAMLMessageDecoder |
|---|
checkEndpointURI, compareEndpointURIs, getActualReceiverEndpointURI, getURIComparator, isMessageSigned, setURIComparator |
| Methods inherited from class org.opensaml.ws.message.decoder.BaseMessageDecoder |
|---|
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.ws.message.decoder.MessageDecoder |
|---|
decode |
| Field Detail |
|---|
private final org.slf4j.Logger log
private String defaultBinding
private SAMLObjectBuilder<AuthnRequest> authnRequestBuilder
private SAMLObjectBuilder<Issuer> issuerBuilder
private SAMLObjectBuilder<NameIDPolicy> nipBuilder
private IdentifierGenerator idGenerator
| Constructor Detail |
|---|
public UnsolicitedSSODecoder(IdentifierGenerator identifierGenerator)
identifierGenerator - the IdentifierGenerator instance to use.| Method Detail |
|---|
public String getBindingURI()
getBindingURI in interface SAMLMessageDecoderprotected boolean isIntendedDestinationEndpointURIRequired(SAMLMessageContext samlMsgCtx)
isIntendedDestinationEndpointURIRequired in class BaseSAMLMessageDecoder
protected String getIntendedDestinationEndpointURI(SAMLMessageContext samlMsgCtx)
throws MessageDecodingException
getIntendedDestinationEndpointURI in class BaseSAML2MessageDecoderMessageDecodingExceptionpublic String getDefaultBinding()
public void setDefaultBinding(String binding)
binding - default binding URI
protected void doDecode(MessageContext messageContext)
throws MessageDecodingException
doDecode in class BaseMessageDecoderMessageDecodingException
private AuthnRequest buildAuthnRequest(String entityID,
String acsURL,
String acsBinding,
String timeStr,
String sessionID)
entityID - the requester identityacsURL - the ACS URLacsBinding - the ACS binding URItimeStr - the request timestampsessionID - the container session, if any
private String lookupACSURL(MetadataProvider mdProvider,
String entityId)
throws MessageDecodingException
mdProvider - the SAML message context's metadata sourceentityId - the SP entityID
MessageDecodingException - if there is an error resolving the ACS URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||