Package org.opensaml.profile.action.impl
Class HttpServletRequestMessageChannelSecurity
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.profile.action.impl.AbstractMessageChannelSecurity
-
- org.opensaml.profile.action.impl.HttpServletRequestMessageChannelSecurity
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction
public class HttpServletRequestMessageChannelSecurity extends AbstractMessageChannelSecurity
Profile action which populates aMessageChannelSecurityContextbased on aHttpServletRequest.
-
-
Field Summary
Fields Modifier and Type Field Description private booleandefaultPortInsecureFlag controlling whether traffic on the default TLS port is "secure".
-
Constructor Summary
Constructors Constructor Description HttpServletRequestMessageChannelSecurity()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()voidsetDefaultPortInsecure(boolean flag)Set whether traffic on the default TLS port is "secure" for the purposes of this action.-
Methods inherited from class org.opensaml.profile.action.impl.AbstractMessageChannelSecurity
doPreExecute, getParentContext, setParentContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Method Detail
-
setDefaultPortInsecure
public void setDefaultPortInsecure(boolean flag)
Set whether traffic on the default TLS port is "secure" for the purposes of this action.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.
- Parameters:
flag- flag to set
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
protected void doExecute(ProfileRequestContext profileRequestContext)
- Overrides:
doExecutein classAbstractProfileAction
-
-