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 TypeMethodDescriptionvoidgo()Go to the new site by submitting the SAML response to the site set via @{link #setSite(String)}.voidsetRelayState(String relayState) Set the relay state (optional).voidsetSAMLResponse(String samlResponse) Set SAML response.voidSet site to which SAML response should be sent.Methods inherited from class com.storedobject.helper.LitComponent
executeJS, onDetachMethods inherited from class com.vaadin.flow.component.littemplate.LitTemplate
getChildrenMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods 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.
-