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)
    • 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)
    • handleLoginResponse

      protected jakarta.ws.rs.core.Response handleLoginResponse(String samlResponse, SAMLDocumentHolder holder, ResponseType responseType, String relayState, String clientId)
    • 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)