public abstract class SamlService.BindingProtocol extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
redirectToAuthentication |
Constructor and Description |
---|
BindingProtocol() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
basicChecks(String samlRequest,
String samlResponse,
String artifact) |
protected abstract boolean |
containsUnencryptedSignature(SAMLDocumentHolder documentHolder) |
protected abstract String |
encodeSamlDocument(Document samlDocument) |
void |
execute(javax.ws.rs.container.AsyncResponse asyncReponse,
String samlRequest,
String samlResponse,
String relayState,
String artifact) |
javax.ws.rs.core.Response |
execute(String samlRequest,
String samlResponse,
String relayState,
String artifact) |
protected abstract SAMLDocumentHolder |
extractRequestDocument(String samlRequest) |
protected abstract SAMLDocumentHolder |
extractResponseDocument(String response) |
protected abstract String |
getBindingType() |
protected String |
getBindingType(AuthnRequestType requestAbstractType) |
protected URI |
getExpectedDestinationUri(KeycloakSession session)
KEYCLOAK-12616, KEYCLOAK-12944: construct the expected destination URI using the configured base URI.
|
protected void |
handleArtifact(javax.ws.rs.container.AsyncResponse asyncResponse,
String artifact,
String relayState)
Handle a received artifact message.
|
protected javax.ws.rs.core.Response |
handleSamlRequest(String samlRequest,
String relayState) |
protected javax.ws.rs.core.Response |
handleSamlResponse(String samlResponse,
String relayState) |
protected boolean |
isDestinationRequired() |
protected javax.ws.rs.core.Response |
loginRequest(String relayState,
AuthnRequestType requestAbstractType,
ClientModel client) |
protected javax.ws.rs.core.Response |
logoutRequest(LogoutRequestType logoutRequest,
ClientModel client,
String relayState) |
protected abstract void |
verifySignature(SAMLDocumentHolder documentHolder,
ClientModel client) |
protected javax.ws.rs.core.Response basicChecks(String samlRequest, String samlResponse, String artifact)
protected boolean isDestinationRequired()
protected javax.ws.rs.core.Response handleSamlResponse(String samlResponse, String relayState)
protected javax.ws.rs.core.Response handleSamlRequest(String samlRequest, String relayState)
protected void handleArtifact(javax.ws.rs.container.AsyncResponse asyncResponse, String artifact, String relayState)
artifact
- the received artifactrelayState
- the current relay stateprotected abstract String encodeSamlDocument(Document samlDocument) throws ProcessingException
ProcessingException
protected abstract void verifySignature(SAMLDocumentHolder documentHolder, ClientModel client) throws VerificationException
VerificationException
protected abstract boolean containsUnencryptedSignature(SAMLDocumentHolder documentHolder)
protected abstract SAMLDocumentHolder extractRequestDocument(String samlRequest)
protected abstract SAMLDocumentHolder extractResponseDocument(String response)
protected javax.ws.rs.core.Response loginRequest(String relayState, AuthnRequestType requestAbstractType, ClientModel client)
protected String getBindingType(AuthnRequestType requestAbstractType)
protected abstract String getBindingType()
protected javax.ws.rs.core.Response logoutRequest(LogoutRequestType logoutRequest, ClientModel client, String relayState)
public javax.ws.rs.core.Response execute(String samlRequest, String samlResponse, String relayState, String artifact)
public void execute(javax.ws.rs.container.AsyncResponse asyncReponse, String samlRequest, String samlResponse, String relayState, String artifact)
protected URI getExpectedDestinationUri(KeycloakSession session)
session
- a reference to the KeycloakSession
.URI
.Copyright © 2021 JBoss by Red Hat. All rights reserved.