Package org.keycloak.protocol.saml
Class SamlService.RedirectBindingProtocol
- java.lang.Object
-
- org.keycloak.protocol.saml.SamlService.BindingProtocol
-
- org.keycloak.protocol.saml.SamlService.RedirectBindingProtocol
-
- Enclosing class:
- SamlService
protected class SamlService.RedirectBindingProtocol extends SamlService.BindingProtocol
-
-
Field Summary
-
Fields inherited from class org.keycloak.protocol.saml.SamlService.BindingProtocol
redirectToAuthentication
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RedirectBindingProtocol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
containsUnencryptedSignature(SAMLDocumentHolder documentHolder)
protected String
encodeSamlDocument(Document samlDocument)
protected javax.ws.rs.core.Response
error(KeycloakSession session, AuthenticationSessionModel authenticationSession, javax.ws.rs.core.Response.Status status, String message, Object... parameters)
protected SAMLDocumentHolder
extractRequestDocument(String samlRequest)
protected SAMLDocumentHolder
extractResponseDocument(String response)
protected String
getBindingType()
protected void
verifySignature(SAMLDocumentHolder documentHolder, ClientModel client)
-
Methods inherited from class org.keycloak.protocol.saml.SamlService.BindingProtocol
basicChecks, execute, execute, getBindingType, getExpectedDestinationUri, handleArtifact, handleSamlRequest, handleSamlResponse, isDestinationRequired, loginRequest, logoutRequest
-
-
-
-
Method Detail
-
error
protected javax.ws.rs.core.Response error(KeycloakSession session, AuthenticationSessionModel authenticationSession, javax.ws.rs.core.Response.Status status, String message, Object... parameters)
- Specified by:
error
in classSamlService.BindingProtocol
-
encodeSamlDocument
protected String encodeSamlDocument(Document samlDocument) throws ProcessingException
- Specified by:
encodeSamlDocument
in classSamlService.BindingProtocol
- Throws:
ProcessingException
-
verifySignature
protected void verifySignature(SAMLDocumentHolder documentHolder, ClientModel client) throws VerificationException
- Specified by:
verifySignature
in classSamlService.BindingProtocol
- Throws:
VerificationException
-
containsUnencryptedSignature
protected boolean containsUnencryptedSignature(SAMLDocumentHolder documentHolder)
- Specified by:
containsUnencryptedSignature
in classSamlService.BindingProtocol
-
extractRequestDocument
protected SAMLDocumentHolder extractRequestDocument(String samlRequest)
- Specified by:
extractRequestDocument
in classSamlService.BindingProtocol
-
extractResponseDocument
protected SAMLDocumentHolder extractResponseDocument(String response)
- Specified by:
extractResponseDocument
in classSamlService.BindingProtocol
-
getBindingType
protected String getBindingType()
- Specified by:
getBindingType
in classSamlService.BindingProtocol
-
-