Package org.keycloak.broker.saml
Class SAMLEndpoint.Binding
java.lang.Object
org.keycloak.broker.saml.SAMLEndpoint.Binding
- Direct Known Subclasses:
SAMLEndpoint.ArtifactBinding,SAMLEndpoint.PostBinding,SAMLEndpoint.RedirectBinding
- Enclosing class:
- SAMLEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ws.rs.core.ResponsebasicChecks(String samlRequest, String samlResponse, String samlArt) protected abstract booleancontainsUnencryptedSignature(SAMLDocumentHolder documentHolder) jakarta.ws.rs.core.Responseexecute(String samlRequest, String samlResponse, String samlArt, String relayState, String clientId) protected abstract SAMLDocumentHolderextractRequestDocument(String samlRequest) protected abstract SAMLDocumentHolderextractResponseDocument(String response) protected abstract Stringprotected final StringgetEntityId(jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) protected KeyLocatorprotected jakarta.ws.rs.core.ResponsehandleLoginResponse(String samlResponse, SAMLDocumentHolder holder, ResponseType responseType, String relayState, String clientId) protected jakarta.ws.rs.core.ResponsehandleLogoutResponse(SAMLDocumentHolder holder, StatusResponseType responseType, String relayState) protected jakarta.ws.rs.core.ResponsehandleSamlArt(String samlArt, String relayState, String clientId) protected jakarta.ws.rs.core.ResponsehandleSamlRequest(String samlRequest, String relayState) jakarta.ws.rs.core.ResponsehandleSamlResponse(String samlResponse, String relayState, String clientId) protected booleanprotected abstract booleanisMessageFullySigned(SAMLDocumentHolder documentHolder) protected final booleanisSuccessfulSamlResponse(ResponseType responseType) protected jakarta.ws.rs.core.ResponselogoutRequest(LogoutRequestType request, String relayState) protected final AuthenticationSessionModelsamlIdpInitiatedSSO(String clientUrlName) If there is a client whose SAML IDP-initiated SSO URL name is set to the givenclientUrlName, creates a fresh authentication session for that client and returns aAuthenticationSessionModelobject with that session.protected abstract voidverifySignature(String key, SAMLDocumentHolder documentHolder)
-
Constructor Details
-
Binding
protected Binding()
-
-
Method Details
-
basicChecks
-
getBindingType
-
containsUnencryptedSignature
-
isMessageFullySigned
-
verifySignature
protected abstract void verifySignature(String key, SAMLDocumentHolder documentHolder) throws VerificationException - Throws:
VerificationException
-
extractRequestDocument
-
extractResponseDocument
-
isDestinationRequired
protected boolean isDestinationRequired() -
getIDPKeyLocator
-
execute
-
handleSamlRequest
-
logoutRequest
-
handleSamlArt
-
getEntityId
-
handleLoginResponse
protected jakarta.ws.rs.core.Response handleLoginResponse(String samlResponse, SAMLDocumentHolder holder, ResponseType responseType, String relayState, String clientId) -
samlIdpInitiatedSSO
If there is a client whose SAML IDP-initiated SSO URL name is set to the givenclientUrlName, creates a fresh authentication session for that client and returns aAuthenticationSessionModelobject with that session. Otherwise returns "client not found" response.- Parameters:
clientUrlName-- Returns:
- see description
-
isSuccessfulSamlResponse
-
handleSamlResponse
-
handleLogoutResponse
protected jakarta.ws.rs.core.Response handleLogoutResponse(SAMLDocumentHolder holder, StatusResponseType responseType, String relayState)
-