Class AbstractSamlAuthenticationHandler
java.lang.Object
org.keycloak.adapters.saml.profile.AbstractSamlAuthenticationHandler
- All Implemented Interfaces:
SamlAuthenticationHandler
- Direct Known Subclasses:
EcpAuthenticationHandler,WebBrowserSsoAuthenticationHandler
public abstract class AbstractSamlAuthenticationHandler
extends Object
implements SamlAuthenticationHandler
- Author:
- Bill Burke
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthChallengeprotected final SamlDeploymentprotected final HttpFacadeprotected static org.jboss.logging.Loggerprotected final SamlSessionStore -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSamlAuthenticationHandler(HttpFacade facade, SamlDeployment deployment, SamlSessionStore sessionStore) -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractInitiateLogincreateChallenge(boolean saveRequestUri) doHandle(SamlInvocationContext context, OnSessionCreated onCreateSession) protected SAMLDocumentHolderextractPostBindingResponse(String response) protected SAMLDocumentHolderextractRedirectBindingResponse(String response) protected AuthOutcomehandleLoginResponse(SAMLDocumentHolder responseHolder, boolean postBinding, OnSessionCreated onCreateSession) protected AuthOutcomehandleLogoutResponse(SAMLDocumentHolder holder, StatusResponseType responseType, String relayState) protected AuthOutcomeprotected AuthOutcomehandleSamlRequest(String samlRequest, String relayState) protected AuthOutcomehandleSamlResponse(String samlResponse, String relayState, OnSessionCreated onCreateSession) protected AuthOutcomeinitiateLogin(boolean saveRequestUri) protected booleanprotected booleanisRole(AttributeType attribute) protected abstract AuthOutcomelogoutRequest(LogoutRequestType request, String relayState) voidverifyPostBindingSignature(Document document, KeyLocator keyLocator) protected booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.adapters.saml.profile.SamlAuthenticationHandler
handle
-
Field Details
-
log
protected static org.jboss.logging.Logger log -
facade
-
sessionStore
-
deployment
-
challenge
-
-
Constructor Details
-
AbstractSamlAuthenticationHandler
public AbstractSamlAuthenticationHandler(HttpFacade facade, SamlDeployment deployment, SamlSessionStore sessionStore)
-
-
Method Details
-
doHandle
-
handleRequest
-
getChallenge
- Specified by:
getChallengein interfaceSamlAuthenticationHandler
-
handleSamlRequest
-
logoutRequest
-
handleSamlResponse
protected AuthOutcome handleSamlResponse(String samlResponse, String relayState, OnSessionCreated onCreateSession) -
handleLoginResponse
protected AuthOutcome handleLoginResponse(SAMLDocumentHolder responseHolder, boolean postBinding, OnSessionCreated onCreateSession) -
isRole
-
handleLogoutResponse
protected AuthOutcome handleLogoutResponse(SAMLDocumentHolder holder, StatusResponseType responseType, String relayState) -
extractRedirectBindingResponse
-
extractPostBindingResponse
-
initiateLogin
-
createChallenge
-
verifySSL
protected boolean verifySSL() -
verifyPostBindingSignature
public void verifyPostBindingSignature(Document document, KeyLocator keyLocator) throws VerificationException - Throws:
VerificationException
-
isAutodetectedBearerOnly
-