public class URLEvaluatingMessageChannelSecurity extends AbstractMessageChannelSecurity
MessageChannelSecurityContext based on evaluating a
target URL resolved via a configured strategy function.| Modifier and Type | Field and Description |
|---|---|
private boolean |
defaultPortInsecure
Flag controlling whether traffic on the default TLS port is "secure".
|
private Logger |
log
Logger.
|
private String |
url
The target resolved URL.
|
private net.shibboleth.utilities.java.support.net.URLBuilder |
urlBuilder
Target resolved and parsed URL.
|
private com.google.common.base.Function<MessageContext,String> |
urlLookup
Function which looks up the URL to evaluate.
|
| Constructor and Description |
|---|
URLEvaluatingMessageChannelSecurity()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected void |
doInvoke(MessageContext messageContext) |
protected boolean |
doPreInvoke(MessageContext messageContext) |
void |
setDefaultPortInsecure(boolean flag)
Set whether traffic on the default TLS port is "secure" for the purposes of this action.
|
void |
setURLLookup(com.google.common.base.Function<MessageContext,String> function)
Set the function which looks up the destination URL to evaluate.
|
getParentContext, setParentContextLookupStrategydoPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, initialize, isDestroyed, isInitializedprivate Logger log
private boolean defaultPortInsecure
@NonnullAfterInit private com.google.common.base.Function<MessageContext,String> urlLookup
@Nullable private net.shibboleth.utilities.java.support.net.URLBuilder urlBuilder
public URLEvaluatingMessageChannelSecurity()
public void setDefaultPortInsecure(boolean flag)
Defaults to "true"
Ordinarily TLS is considered a "secure" channel, but traffic to a default port meant for browser access tends to rely on server certificates that are unsuited to secure messaging use cases. This flag allows software layers to recognize traffic on this port as "insecure" and needing additional security measures.
flag - flag to setpublic void setURLLookup(@Nullable com.google.common.base.Function<MessageContext,String> function)
function - the lookup functionprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException
doPreInvoke in class AbstractMessageChannelSecurityMessageHandlerExceptionprotected void doInvoke(MessageContext messageContext)
doInvoke in class AbstractMessageHandlerCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.