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
Fields Modifier and Type Field Description protected AuthChallengechallengeprotected SamlDeploymentdeploymentprotected HttpFacadefacadeprotected static org.jboss.logging.Loggerlogprotected SamlSessionStoresessionStore
-
Constructor Summary
Constructors Constructor Description AbstractSamlAuthenticationHandler(HttpFacade facade, SamlDeployment deployment, SamlSessionStore sessionStore)
-
Method Summary
-
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 Detail
-
log
protected static org.jboss.logging.Logger log
-
facade
protected final HttpFacade facade
-
sessionStore
protected final SamlSessionStore sessionStore
-
deployment
protected final SamlDeployment deployment
-
challenge
protected AuthChallenge challenge
-
-
Constructor Detail
-
AbstractSamlAuthenticationHandler
public AbstractSamlAuthenticationHandler(HttpFacade facade, SamlDeployment deployment, SamlSessionStore sessionStore)
-
-
Method Detail
-
doHandle
public AuthOutcome doHandle(SamlInvocationContext context, OnSessionCreated onCreateSession)
-
handleRequest
protected AuthOutcome handleRequest()
-
getChallenge
public AuthChallenge getChallenge()
- Specified by:
getChallengein interfaceSamlAuthenticationHandler
-
handleSamlRequest
protected AuthOutcome handleSamlRequest(String samlRequest, String relayState)
-
logoutRequest
protected abstract AuthOutcome logoutRequest(LogoutRequestType request, String relayState)
-
handleSamlResponse
protected AuthOutcome handleSamlResponse(String samlResponse, String relayState, OnSessionCreated onCreateSession)
-
handleLoginResponse
protected AuthOutcome handleLoginResponse(SAMLDocumentHolder responseHolder, boolean postBinding, OnSessionCreated onCreateSession)
-
isRole
protected boolean isRole(AttributeType attribute)
-
handleLogoutResponse
protected AuthOutcome handleLogoutResponse(SAMLDocumentHolder holder, StatusResponseType responseType, String relayState)
-
extractRedirectBindingResponse
protected SAMLDocumentHolder extractRedirectBindingResponse(String response)
-
extractPostBindingResponse
protected SAMLDocumentHolder extractPostBindingResponse(String response)
-
initiateLogin
protected AuthOutcome initiateLogin()
-
createChallenge
protected AbstractInitiateLogin createChallenge()
-
verifySSL
protected boolean verifySSL()
-
verifyPostBindingSignature
public void verifyPostBindingSignature(Document document, KeyLocator keyLocator) throws VerificationException
- Throws:
VerificationException
-
isAutodetectedBearerOnly
protected boolean isAutodetectedBearerOnly(HttpFacade.Request request)
-
-