public class ValidateActionHandler
extends org.opensaml.messaging.handler.AbstractMessageHandler
If the header is present, the value is first checked against the value obtained from subcontext data
WSAddressingContext.getActionURI()
. If that was not supplied, then the locally-configured value
from getExpectedActionURI()
is used. If neither expected value is available, the check is skipped.
Modifier and Type | Field and Description |
---|---|
private String |
expectedActionURI
The expected Action URI value.
|
private org.slf4j.Logger |
log
Logger.
|
Constructor and Description |
---|
ValidateActionHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
protected boolean |
doPreInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
protected Action |
getAction(org.opensaml.messaging.context.MessageContext messageContext)
Get message Action header.
|
String |
getExpectedActionURI()
Get the expected Action URI.
|
void |
setExpectedActionURI(String uri)
Set the expected Action URI value.
|
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
private org.slf4j.Logger log
private String expectedActionURI
@Nullable public String getExpectedActionURI()
public void setExpectedActionURI(@Nullable String uri)
uri
- the new URI valueprotected boolean doPreInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doPreInvoke
in class org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.messaging.handler.MessageHandlerException
protected void doInvoke(org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke
in class org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.messaging.handler.MessageHandlerException
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.