Package org.keycloak.protocol.saml
Class SamlService.PostBindingProtocol
java.lang.Object
org.keycloak.protocol.saml.SamlService.BindingProtocol
org.keycloak.protocol.saml.SamlService.PostBindingProtocol
- Enclosing class:
- SamlService
-
Field Summary
Fields inherited from class org.keycloak.protocol.saml.SamlService.BindingProtocol
redirectToAuthentication -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontainsUnencryptedSignature(SAMLDocumentHolder documentHolder) protected StringencodeSamlDocument(Document samlDocument) protected jakarta.ws.rs.core.Responseerror(KeycloakSession session, AuthenticationSessionModel authenticationSession, jakarta.ws.rs.core.Response.Status status, String message, Object... parameters) protected SAMLDocumentHolderextractRequestDocument(String samlRequest) protected SAMLDocumentHolderextractResponseDocument(String response) protected Stringprotected voidverifyResponseSignature(SAMLDocumentHolder documentHolder, ClientModel client, String samlResponse, String relayState) protected voidverifySignature(SAMLDocumentHolder documentHolder, ClientModel client, String samlRequest, String relayState) Methods inherited from class org.keycloak.protocol.saml.SamlService.BindingProtocol
basicChecks, execute, execute, getBindingType, getExpectedDestinationUri, handleArtifact, handleSamlRequest, handleSamlResponse, isDestinationRequired, loginRequest, logoutRequest, sendProtocolError, triggerSamlEvent
-
Constructor Details
-
PostBindingProtocol
protected PostBindingProtocol()
-
-
Method Details
-
error
protected jakarta.ws.rs.core.Response error(KeycloakSession session, AuthenticationSessionModel authenticationSession, jakarta.ws.rs.core.Response.Status status, String message, Object... parameters) - Specified by:
errorin classSamlService.BindingProtocol
-
encodeSamlDocument
- Specified by:
encodeSamlDocumentin classSamlService.BindingProtocol- Throws:
ProcessingException
-
verifySignature
protected void verifySignature(SAMLDocumentHolder documentHolder, ClientModel client, String samlRequest, String relayState) throws VerificationException - Specified by:
verifySignaturein classSamlService.BindingProtocolsamlRequest- theSAMLRequestbeing processedrelayState- the relay state being processed- Throws:
VerificationException
-
verifyResponseSignature
protected void verifyResponseSignature(SAMLDocumentHolder documentHolder, ClientModel client, String samlResponse, String relayState) throws VerificationException - Specified by:
verifyResponseSignaturein classSamlService.BindingProtocolsamlResponse- theSAMLResponsebeing processedrelayState- the relay state being processed- Throws:
VerificationException
-
containsUnencryptedSignature
- Specified by:
containsUnencryptedSignaturein classSamlService.BindingProtocol
-
extractRequestDocument
- Specified by:
extractRequestDocumentin classSamlService.BindingProtocol
-
extractResponseDocument
- Specified by:
extractResponseDocumentin classSamlService.BindingProtocol
-
getBindingType
- Specified by:
getBindingTypein classSamlService.BindingProtocol
-