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(java.lang.StringBuilder builder,
java.lang.String queryString,
java.lang.String paramName)
Find the raw query string parameter indicated and append it to the string builder.
|
private java.lang.String |
buildSignedContentString(java.lang.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(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, validateSignaturedoPostInvoke, doPostInvoke, getLogPrefix, invokedestroy, doDestroy, initialize, isDestroyed, isInitializedpublic SAML2HTTPRedirectDeflateSignatureSecurityHandler()
protected boolean ruleHandles(@Nonnull
MessageContext messgaeContext)
throws MessageHandlerException
ruleHandles in class BaseSAMLSimpleSignatureSecurityHandlermessgaeContext - the SAML message context being processedMessageHandlerException - thrown if there is an error during request processing@Nullable
protected byte[] getSignedContent()
throws MessageHandlerException
SignatureTrustEngine.validate(byte[], byte[], String, CriteriaSet, Credential).getSignedContent in class BaseSAMLSimpleSignatureSecurityHandlerMessageHandlerException - thrown if there is an error during request processing@Nonnull
@NotEmpty
private java.lang.String buildSignedContentString(java.lang.String queryString)
throws MessageHandlerException
queryString - the raw HTTP query string from the requestMessageHandlerException - thrown if there is an error during request processingprivate boolean appendParameter(@Nonnull
java.lang.StringBuilder builder,
@Nullable
java.lang.String queryString,
@Nullable
java.lang.String paramName)
builder - string builder to which to append the parameterqueryString - the URL query string containing parametersparamName - the name of the parameter to append