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
Modifier and TypeFieldDescriptionprotected AuthChallenge
protected final SamlDeployment
protected final HttpFacade
protected static org.jboss.logging.Logger
protected final SamlSessionStore
-
Constructor Summary
ConstructorDescriptionAbstractSamlAuthenticationHandler
(HttpFacade facade, SamlDeployment deployment, SamlSessionStore sessionStore) -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractInitiateLogin
doHandle
(SamlInvocationContext context, OnSessionCreated onCreateSession) protected SAMLDocumentHolder
extractPostBindingResponse
(String response) protected SAMLDocumentHolder
extractRedirectBindingResponse
(String response) protected AuthOutcome
handleLoginResponse
(SAMLDocumentHolder responseHolder, boolean postBinding, OnSessionCreated onCreateSession) protected AuthOutcome
handleLogoutResponse
(SAMLDocumentHolder holder, StatusResponseType responseType, String relayState) protected AuthOutcome
protected AuthOutcome
handleSamlRequest
(String samlRequest, String relayState) protected AuthOutcome
handleSamlResponse
(String samlResponse, String relayState, OnSessionCreated onCreateSession) protected AuthOutcome
protected boolean
protected boolean
isRole
(AttributeType attribute) protected abstract AuthOutcome
logoutRequest
(LogoutRequestType request, String relayState) void
verifyPostBindingSignature
(Document document, KeyLocator keyLocator) protected boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getChallenge
in 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
-