public class SAML2HTTPRedirectDeflateSignatureSecurityHandler extends BaseSAMLSimpleSignatureSecurityHandler
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Logger.
|
Constructor and Description |
---|
SAML2HTTPRedirectDeflateSignatureSecurityHandler() |
Modifier and Type | Method and Description |
---|---|
private boolean |
appendParameter(StringBuilder builder,
String queryString,
String paramName)
Find the raw query string parameter indicated and append it to the string builder.
|
private String |
buildSignedContentString(String queryString)
Extract the raw request parameters and build a string representation of the content that was signed.
|
protected byte[] |
getSignedContent()
Get the content over which to validate the signature, in the form suitable for input into
SignatureTrustEngine.validate(byte[], byte[], String, CriteriaSet, Credential) . |
protected boolean |
ruleHandles(org.opensaml.messaging.context.MessageContext messgaeContext)
Determine whether the rule should handle the request, based on the unwrapped HTTP servlet request and/or message
context.
|
buildCriteriaSet, deriveSignerEntityID, doInitialize, doInvoke, doPreInvoke, getHttpServletRequest, getRequestCredentials, getSignature, getSignatureAlgorithm, getTrustEngine, setHttpServletRequest, validateSignature
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
destroy, doDestroy, initialize, isDestroyed, isInitialized
@Nonnull private final org.slf4j.Logger log
public SAML2HTTPRedirectDeflateSignatureSecurityHandler()
protected boolean ruleHandles(@Nonnull org.opensaml.messaging.context.MessageContext messgaeContext) throws org.opensaml.messaging.handler.MessageHandlerException
ruleHandles
in class BaseSAMLSimpleSignatureSecurityHandler
messgaeContext
- the SAML message context being processedorg.opensaml.messaging.handler.MessageHandlerException
- thrown if there is an error during request processing@Nullable protected byte[] getSignedContent() throws org.opensaml.messaging.handler.MessageHandlerException
SignatureTrustEngine.validate(byte[], byte[], String, CriteriaSet, Credential)
.getSignedContent
in class BaseSAMLSimpleSignatureSecurityHandler
org.opensaml.messaging.handler.MessageHandlerException
- thrown if there is an error during request processing@Nonnull @NotEmpty private String buildSignedContentString(String queryString) throws org.opensaml.messaging.handler.MessageHandlerException
queryString
- the raw HTTP query string from the requestorg.opensaml.messaging.handler.MessageHandlerException
- thrown if there is an error during request processingprivate boolean appendParameter(@Nonnull StringBuilder builder, @Nullable String queryString, @Nullable String paramName)
builder
- string builder to which to append the parameterqueryString
- the URL query string containing parametersparamName
- the name of the parameter to appendCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.