Package com.storedobject.ui
Class RedirectSAML
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.littemplate.LitTemplate
com.storedobject.helper.LitComponent
com.storedobject.ui.RedirectSAML
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.internal.Template
,Serializable
@Tag("so-redirect-saml")
@JsModule("./so/saml-redirect/saml-redirect.js")
public class RedirectSAML
extends LitComponent
Class used to redirect the user to another site via SAML authentication.
- Author:
- Syam
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
go()
Go to the new site by submitting the SAML response to the site set via @{link #setSite(String)}.void
setRelayState
(String relayState) Set the relay state (optional).void
setSAMLResponse
(String samlResponse) Set SAML response.void
Set site to which SAML response should be sent.Methods inherited from class com.storedobject.helper.LitComponent
executeJS, onDetach
Methods inherited from class com.vaadin.flow.component.littemplate.LitTemplate
getChildren
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
RedirectSAML
public RedirectSAML()Constructor.
-
-
Method Details
-
setRelayState
Set the relay state (optional).- Parameters:
relayState
- Relay state to set.
-
setSAMLResponse
Set SAML response. Please make sure that you pass a valid Base64 encoded SAML response block.- Parameters:
samlResponse
- SAML response to set.
-
setSite
Set site to which SAML response should be sent.- Parameters:
site
- Site.
-
go
public void go()Go to the new site by submitting the SAML response to the site set via @{link #setSite(String)}. The application may get redirected based on the response from the site.
-