Class BaseSingleLogoutServiceLogoutUrlBuilder

  • All Implemented Interfaces:
    org.apereo.cas.logout.slo.SingleLogoutServiceLogoutUrlBuilder, org.springframework.core.Ordered
    Direct Known Subclasses:
    DefaultSingleLogoutServiceLogoutUrlBuilder

    public abstract class BaseSingleLogoutServiceLogoutUrlBuilder
    extends java.lang.Object
    implements org.apereo.cas.logout.slo.SingleLogoutServiceLogoutUrlBuilder
    This is BaseSingleLogoutServiceLogoutUrlBuilder which acts on a registered service to determine how the logout url endpoint should be decided.
    Since:
    5.0.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apereo.cas.services.ServicesManager servicesManager
      Services manager instance.
      protected org.apereo.cas.web.UrlValidator urlValidator
      The Url validator.
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<org.apereo.cas.logout.slo.SingleLogoutUrl> determineLogoutUrl​(org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.principal.WebApplicationService singleLogoutService, java.util.Optional<javax.servlet.http.HttpServletRequest> httpRequest)  
      boolean isServiceAuthorized​(org.apereo.cas.authentication.principal.WebApplicationService service, java.util.Optional<javax.servlet.http.HttpServletRequest> request)  
      boolean supports​(org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.principal.WebApplicationService singleLogoutService, java.util.Optional<javax.servlet.http.HttpServletRequest> httpRequest)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.logout.slo.SingleLogoutServiceLogoutUrlBuilder

        determineLogoutUrl, getName, getOrder
    • Field Detail

      • servicesManager

        protected final org.apereo.cas.services.ServicesManager servicesManager
        Services manager instance.
      • urlValidator

        protected final org.apereo.cas.web.UrlValidator urlValidator
        The Url validator.
    • Constructor Detail

      • BaseSingleLogoutServiceLogoutUrlBuilder

        public BaseSingleLogoutServiceLogoutUrlBuilder()
    • Method Detail

      • supports

        public boolean supports​(org.apereo.cas.services.RegisteredService registeredService,
                                org.apereo.cas.authentication.principal.WebApplicationService singleLogoutService,
                                java.util.Optional<javax.servlet.http.HttpServletRequest> httpRequest)
        Specified by:
        supports in interface org.apereo.cas.logout.slo.SingleLogoutServiceLogoutUrlBuilder
      • isServiceAuthorized

        public boolean isServiceAuthorized​(org.apereo.cas.authentication.principal.WebApplicationService service,
                                           java.util.Optional<javax.servlet.http.HttpServletRequest> request)
        Specified by:
        isServiceAuthorized in interface org.apereo.cas.logout.slo.SingleLogoutServiceLogoutUrlBuilder
      • determineLogoutUrl

        public java.util.Collection<org.apereo.cas.logout.slo.SingleLogoutUrl> determineLogoutUrl​(org.apereo.cas.services.RegisteredService registeredService,
                                                                                                  org.apereo.cas.authentication.principal.WebApplicationService singleLogoutService,
                                                                                                  java.util.Optional<javax.servlet.http.HttpServletRequest> httpRequest)
        Specified by:
        determineLogoutUrl in interface org.apereo.cas.logout.slo.SingleLogoutServiceLogoutUrlBuilder