Package org.keycloak.adapters.saml
Class SamlUtil
- java.lang.Object
-
- org.keycloak.adapters.saml.SamlUtil
-
public class SamlUtil extends Object
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description SamlUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
sendSaml
public static void sendSaml(boolean asRequest, HttpFacade httpFacade, String actionUrl, BaseSAML2BindingBuilder binding, Document document, SamlDeployment.Binding samlBinding) throws ProcessingException, ConfigurationException, IOException
-
getRedirectTo
public static String getRedirectTo(HttpFacade facade, String contextPath, String baseUri)
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)
-
-