public class UnsolicitedSSODecoder extends BaseSAML2MessageDecoder implements SAMLMessageDecoder
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.
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
UnsolicitedSSODecoder(IdentifierGenerator identifierGenerator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
decode, extractEntityId, extractRequestInfo, extractResponseInfo, populateMessageContext, populateMessageIdIssueInstantIssuer, populateRelyingPartyMetadatacheckEndpointURI, compareEndpointURIs, getActualReceiverEndpointURI, getURIComparator, isMessageSigned, setURIComparatorgetParserPool, logDecodedMessage, processSecurityPolicy, setParserPool, unmarshallMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecodeprivate final org.slf4j.Logger log
private String defaultBinding
private SAMLObjectBuilder<AuthnRequest> authnRequestBuilder
private SAMLObjectBuilder<Issuer> issuerBuilder
private SAMLObjectBuilder<NameIDPolicy> nipBuilder
private IdentifierGenerator idGenerator
public UnsolicitedSSODecoder(IdentifierGenerator identifierGenerator)
identifierGenerator - the IdentifierGenerator instance to use.public String getBindingURI()
getBindingURI in interface SAMLMessageDecoderprotected boolean isIntendedDestinationEndpointURIRequired(SAMLMessageContext samlMsgCtx)
isIntendedDestinationEndpointURIRequired in class BaseSAMLMessageDecoderprotected String getIntendedDestinationEndpointURI(SAMLMessageContext samlMsgCtx) throws MessageDecodingException
getIntendedDestinationEndpointURI in class BaseSAML2MessageDecoderMessageDecodingExceptionpublic String getDefaultBinding()
public void setDefaultBinding(String binding)
binding - default binding URIprotected void doDecode(MessageContext messageContext) throws MessageDecodingException
doDecode in class BaseMessageDecoderMessageDecodingExceptionprivate 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 anyprivate String lookupACSURL(MetadataProvider mdProvider, String entityId) throws MessageDecodingException
mdProvider - the SAML message context's metadata sourceentityId - the SP entityIDMessageDecodingException - if there is an error resolving the ACS URLCopyright © 1999-2014. All Rights Reserved.