Package org.keycloak.adapters.saml
Class SamlUtil
java.lang.Object
org.keycloak.adapters.saml.SamlUtil
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetRedirectTo(HttpFacade facade, String contextPath, String baseUri) Gets a url to redirect to if there is an IDP initiated login.static voidsendSaml(boolean asRequest, HttpFacade httpFacade, String actionUrl, BaseSAML2BindingBuilder binding, Document document, SamlDeployment.Binding samlBinding) static SamlSessionvalidateSamlSession(Object potentialSamlSession, SamlDeployment deployment)
-
Field Details
-
log
protected static org.jboss.logging.Logger log
-
-
Constructor Details
-
SamlUtil
public SamlUtil()
-
-
Method Details
-
sendSaml
public static void sendSaml(boolean asRequest, HttpFacade httpFacade, String actionUrl, BaseSAML2BindingBuilder binding, Document document, SamlDeployment.Binding samlBinding) throws ProcessingException, ConfigurationException, IOException -
getRedirectTo
Gets a url to redirect to if there is an IDP initiated login. Looks for a redirectTo query param first, then looks in RelayState, if not in either defaults to context path.- Parameters:
facade-contextPath-baseUri-- Returns:
-
validateSamlSession
public static SamlSession validateSamlSession(Object potentialSamlSession, SamlDeployment deployment)
-