Package org.opensaml.profile.action.impl
Class HttpServletRequestMessageChannelSecurity
java.lang.Object
net.shibboleth.shared.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
Profile action which populates a
MessageChannelSecurityContext based on a
HttpServletRequest.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFlag controlling whether traffic on the default TLS port is "secure". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) Performs this action.protected voidvoidsetDefaultPortInsecure(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, ensureParentContext, getParentContext, setParentContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
defaultPortInsecure
private boolean defaultPortInsecureFlag controlling whether traffic on the default TLS port is "secure".
-
-
Constructor Details
-
HttpServletRequestMessageChannelSecurity
public HttpServletRequestMessageChannelSecurity()Constructor.
-
-
Method Details
-
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
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
Performs this action. Actions must override this method to perform their work.- Overrides:
doExecutein classAbstractProfileAction- Parameters:
profileRequestContext- the current IdP profile request context
-