Class BaseSurrogateAuthenticationService

  • All Implemented Interfaces:
    org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService
    Direct Known Subclasses:
    SimpleSurrogateAuthenticationService

    public abstract class BaseSurrogateAuthenticationService
    extends java.lang.Object
    implements org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService
    Since:
    5.2.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apereo.cas.services.ServicesManager servicesManager
      The Services manager.
      • Fields inherited from interface org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService

        AUTHENTICATION_ATTR_SURROGATE_ENABLED, AUTHENTICATION_ATTR_SURROGATE_PRINCIPAL, AUTHENTICATION_ATTR_SURROGATE_USER
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canAuthenticateAs​(java.lang.String surrogate, org.apereo.cas.authentication.principal.Principal principal, java.util.Optional<org.apereo.cas.authentication.principal.Service> service)  
      protected abstract boolean canAuthenticateAsInternal​(java.lang.String surrogate, org.apereo.cas.authentication.principal.Principal principal, java.util.Optional<org.apereo.cas.authentication.principal.Service> service)
      Can principal authenticate as surrogate.
      • 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.authentication.surrogate.SurrogateAuthenticationService

        getEligibleAccountsForSurrogateToProxy
    • Field Detail

      • servicesManager

        protected final org.apereo.cas.services.ServicesManager servicesManager
        The Services manager.
    • Constructor Detail

      • BaseSurrogateAuthenticationService

        public BaseSurrogateAuthenticationService()
    • Method Detail

      • canAuthenticateAs

        public final boolean canAuthenticateAs​(java.lang.String surrogate,
                                               org.apereo.cas.authentication.principal.Principal principal,
                                               java.util.Optional<org.apereo.cas.authentication.principal.Service> service)
        Specified by:
        canAuthenticateAs in interface org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService
      • canAuthenticateAsInternal

        protected abstract boolean canAuthenticateAsInternal​(java.lang.String surrogate,
                                                             org.apereo.cas.authentication.principal.Principal principal,
                                                             java.util.Optional<org.apereo.cas.authentication.principal.Service> service)
        Can principal authenticate as surrogate.
        Parameters:
        surrogate - the surrogate
        principal - the principal
        service - the service
        Returns:
        true/false