RequestType - type of decoded message@NotThreadSafe public abstract class BaseIdPInitiatedSSORequestMessageDecoder<RequestType> extends org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder<RequestType>
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.common.binding.BindingDescriptor |
bindingDescriptor
Optional
BindingDescriptor to inject into SAMLBindingContext created. |
private IdentifierGenerationStrategy |
idGenerator
ID generator.
|
private org.slf4j.Logger |
log
Class logger.
|
private org.slf4j.Logger |
protocolMessageLog
Used to log protocol messages.
|
static String |
PROVIDER_ID_PARAM
Name of the query parameter carrying the service provider entity ID: "providerId" .
|
static String |
SHIRE_PARAM
Name of the query parameter carrying the service provider's assertion consumer service URL: "shire" .
|
static String |
TARGET_PARAM
Name of the query parameter carrying the service provider's target/RelayState information: "target" .
|
static String |
TIME_PARAM
Name of the query parameter carrying the current time at the service provider: "time" .
|
| Constructor and Description |
|---|
BaseIdPInitiatedSSORequestMessageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected IdPInitiatedSSORequest |
buildIdPInitiatedSSORequest()
Build a new IdP-initiated request structure from the inbound HTTP request.
|
void |
decode() |
protected String |
getAcsUrl(HttpServletRequest request)
Gets the assertion consumer service URL for the service provider.
|
org.opensaml.saml.common.binding.BindingDescriptor |
getBindingDescriptor()
Get an optional
BindingDescriptor to inject into SAMLBindingContext created. |
protected String |
getEntityId(HttpServletRequest request)
Gets the entity ID of the service provider.
|
protected String |
getMessageID()
Construct a message ID for the request.
|
protected abstract String |
getMessageToLog()
Get the string representation of what will be logged as the protocol message.
|
protected String |
getTarget(HttpServletRequest request)
Gets the opaque relay state sent by the service provider.
|
protected Long |
getTime(HttpServletRequest request)
Gets the current time, in milliseconds since the epoch, at the SP, if set.
|
protected void |
logDecodedMessage()
Log the decoded message to the protocol message logger.
|
void |
setBindingDescriptor(org.opensaml.saml.common.binding.BindingDescriptor descriptor)
Set an optional
BindingDescriptor to inject into SAMLBindingContext created. |
doDestroy, doInitialize, getHttpServletRequest, setHttpServletRequestdoDecode, getMessageContext, setMessageContextdestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitializeddestroy, isDestroyed@Nonnull @NotEmpty public static final String PROVIDER_ID_PARAM
@Nonnull @NotEmpty public static final String SHIRE_PARAM
@Nonnull @NotEmpty public static final String TARGET_PARAM
@Nonnull @NotEmpty public static final String TIME_PARAM
@Nonnull private final org.slf4j.Logger log
@Nullable private org.opensaml.saml.common.binding.BindingDescriptor bindingDescriptor
BindingDescriptor to inject into SAMLBindingContext created.@Nonnull private final org.slf4j.Logger protocolMessageLog
@Nonnull private final IdentifierGenerationStrategy idGenerator
public BaseIdPInitiatedSSORequestMessageDecoder()
@Nullable public org.opensaml.saml.common.binding.BindingDescriptor getBindingDescriptor()
BindingDescriptor to inject into SAMLBindingContext created.public void setBindingDescriptor(@Nullable org.opensaml.saml.common.binding.BindingDescriptor descriptor)
BindingDescriptor to inject into SAMLBindingContext created.descriptor - a binding descriptorpublic void decode()
throws org.opensaml.messaging.decoder.MessageDecodingException
decode in interface org.opensaml.messaging.decoder.MessageDecoder<RequestType>decode in class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder<RequestType>org.opensaml.messaging.decoder.MessageDecodingException@Nonnull protected IdPInitiatedSSORequest buildIdPInitiatedSSORequest() throws org.opensaml.messaging.decoder.MessageDecodingException
org.opensaml.messaging.decoder.MessageDecodingException - if the request doesn't contain an entityID@Nonnull @NotEmpty protected String getEntityId(@Nonnull HttpServletRequest request) throws org.opensaml.messaging.decoder.MessageDecodingException
request - current HTTP requestorg.opensaml.messaging.decoder.MessageDecodingException - thrown if the request does not contain a service provider entity ID@Nullable protected String getAcsUrl(@Nonnull HttpServletRequest request)
request - current HTTP request@Nullable protected String getTarget(@Nonnull HttpServletRequest request)
request - current HTTP request@Nullable protected Long getTime(@Nonnull HttpServletRequest request) throws org.opensaml.messaging.decoder.MessageDecodingException
request - current HTTP requestorg.opensaml.messaging.decoder.MessageDecodingException - thrown if the time parameter given by the service provider is non-numeric or a
negative timeprotected void logDecodedMessage()
@Nonnull protected String getMessageID()
Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.