Class SimpleSurrogateAuthenticationService

    • Field Summary

      • Fields inherited from interface org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService

        AUTHENTICATION_ATTR_SURROGATE_ENABLED, AUTHENTICATION_ATTR_SURROGATE_PRINCIPAL, AUTHENTICATION_ATTR_SURROGATE_USER
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleSurrogateAuthenticationService​(java.util.Map<java.lang.String,​java.util.List> eligibleAccounts, org.apereo.cas.services.ServicesManager servicesManager)
      Instantiates a new simple surrogate username password service.
    • Constructor Detail

      • SimpleSurrogateAuthenticationService

        public SimpleSurrogateAuthenticationService​(java.util.Map<java.lang.String,​java.util.List> eligibleAccounts,
                                                    org.apereo.cas.services.ServicesManager servicesManager)
        Instantiates a new simple surrogate username password service.
        Parameters:
        eligibleAccounts - the eligible accounts
        servicesManager - the services manager
    • Method Detail

      • canAuthenticateAsInternal

        public boolean canAuthenticateAsInternal​(java.lang.String surrogate,
                                                 org.apereo.cas.authentication.principal.Principal principal,
                                                 java.util.Optional<org.apereo.cas.authentication.principal.Service> service)
        Description copied from class: BaseSurrogateAuthenticationService
        Can principal authenticate as surrogate.
        Specified by:
        canAuthenticateAsInternal in class BaseSurrogateAuthenticationService
        Parameters:
        surrogate - the surrogate
        principal - the principal
        service - the service
        Returns:
        true/false
      • getEligibleAccountsForSurrogateToProxy

        public java.util.Collection<java.lang.String> getEligibleAccountsForSurrogateToProxy​(java.lang.String username)