Class AbstractSamlAuthMech

  • All Implemented Interfaces:
    io.undertow.security.api.AuthenticationMechanism
    Direct Known Subclasses:
    ServletSamlAuthMech

    public abstract class AbstractSamlAuthMech
    extends Object
    implements io.undertow.security.api.AuthenticationMechanism
    Abstract base class for a Keycloak-enabled Undertow AuthenticationMechanism.
    Author:
    Stan Silvert ssilvert@redhat.com (C) 2014 Red Hat Inc.
    • Method Detail

      • sendChallenge

        public io.undertow.security.api.AuthenticationMechanism.ChallengeResult sendChallenge​(io.undertow.server.HttpServerExchange exchange,
                                                                                              io.undertow.security.api.SecurityContext securityContext)
        Specified by:
        sendChallenge in interface io.undertow.security.api.AuthenticationMechanism
      • servePage

        protected Integer servePage​(io.undertow.server.HttpServerExchange exchange,
                                    String location)
      • registerNotifications

        protected void registerNotifications​(io.undertow.security.api.SecurityContext securityContext)
      • authenticate

        public io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome authenticate​(io.undertow.server.HttpServerExchange exchange,
                                                                                                            io.undertow.security.api.SecurityContext securityContext)
        Call this inside your authenticate method.
        Specified by:
        authenticate in interface io.undertow.security.api.AuthenticationMechanism
      • redirectLogout

        protected void redirectLogout​(SamlDeployment deployment,
                                      io.undertow.server.HttpServerExchange exchange)
      • createFacade

        protected UndertowHttpFacade createFacade​(io.undertow.server.HttpServerExchange exchange)
      • getTokenStore

        protected abstract SamlSessionStore getTokenStore​(io.undertow.server.HttpServerExchange exchange,
                                                          HttpFacade facade,
                                                          SamlDeployment deployment,
                                                          io.undertow.security.api.SecurityContext securityContext)