Class SAMLEndpoint.Binding

java.lang.Object
org.keycloak.broker.saml.SAMLEndpoint.Binding
Direct Known Subclasses:
SAMLEndpoint.ArtifactBinding, SAMLEndpoint.PostBinding, SAMLEndpoint.RedirectBinding
Enclosing class:
SAMLEndpoint

protected abstract class SAMLEndpoint.Binding extends Object
  • Constructor Details

    • Binding

      protected Binding()
  • Method Details

    • basicChecks

      protected jakarta.ws.rs.core.Response basicChecks(String samlRequest, String samlResponse, String samlArt)
    • getBindingType

      protected abstract String getBindingType()
    • containsUnencryptedSignature

      protected abstract boolean containsUnencryptedSignature(SAMLDocumentHolder documentHolder)
    • isMessageFullySigned

      protected abstract boolean isMessageFullySigned(SAMLDocumentHolder documentHolder)
    • verifySignature

      protected abstract void verifySignature(String key, SAMLDocumentHolder documentHolder) throws VerificationException
      Throws:
      VerificationException
    • extractRequestDocument

      protected abstract SAMLDocumentHolder extractRequestDocument(String samlRequest)
    • extractResponseDocument

      protected abstract SAMLDocumentHolder extractResponseDocument(String response)
    • isDestinationRequired

      protected boolean isDestinationRequired()
    • getIDPKeyLocator

      protected KeyLocator getIDPKeyLocator()
    • execute

      public jakarta.ws.rs.core.Response execute(String samlRequest, String samlResponse, String samlArt, String relayState, String clientId)
    • handleSamlRequest

      protected jakarta.ws.rs.core.Response handleSamlRequest(String samlRequest, String relayState)
    • logoutRequest

      protected jakarta.ws.rs.core.Response logoutRequest(LogoutRequestType request, String relayState)
    • handleSamlArt

      protected jakarta.ws.rs.core.Response handleSamlArt(String samlArt, String relayState, String clientId)
    • getEntityId

      protected final String getEntityId(jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm)
    • handleLoginResponse

      protected jakarta.ws.rs.core.Response handleLoginResponse(String samlResponse, SAMLDocumentHolder holder, ResponseType responseType, String relayState, String clientId)
    • samlIdpInitiatedSSO

      protected final AuthenticationSessionModel samlIdpInitiatedSSO(String clientUrlName)
      If there is a client whose SAML IDP-initiated SSO URL name is set to the given clientUrlName, creates a fresh authentication session for that client and returns a AuthenticationSessionModel object with that session. Otherwise returns "client not found" response.
      Parameters:
      clientUrlName -
      Returns:
      see description
    • isSuccessfulSamlResponse

      protected final boolean isSuccessfulSamlResponse(ResponseType responseType)
    • handleSamlResponse

      public jakarta.ws.rs.core.Response handleSamlResponse(String samlResponse, String relayState, String clientId)
    • handleLogoutResponse

      protected jakarta.ws.rs.core.Response handleLogoutResponse(SAMLDocumentHolder holder, StatusResponseType responseType, String relayState)