Class SimpleSurrogateAuthenticationService
- java.lang.Object
-
- org.apereo.cas.authentication.surrogate.BaseSurrogateAuthenticationService
-
- org.apereo.cas.authentication.surrogate.SimpleSurrogateAuthenticationService
-
- All Implemented Interfaces:
org.apereo.cas.authentication.surrogate.SurrogateAuthenticationService
- Direct Known Subclasses:
JsonResourceSurrogateAuthenticationService
public class SimpleSurrogateAuthenticationService extends BaseSurrogateAuthenticationService
This isSimpleSurrogateAuthenticationService.- Since:
- 5.1.0
-
-
Field Summary
-
Fields inherited from class org.apereo.cas.authentication.surrogate.BaseSurrogateAuthenticationService
servicesManager
-
-
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAuthenticateAsInternal(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.java.util.Collection<java.lang.String>getEligibleAccountsForSurrogateToProxy(java.lang.String username)-
Methods inherited from class org.apereo.cas.authentication.surrogate.BaseSurrogateAuthenticationService
canAuthenticateAs
-
-
-
-
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 accountsservicesManager- 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:BaseSurrogateAuthenticationServiceCan principal authenticate as surrogate.- Specified by:
canAuthenticateAsInternalin classBaseSurrogateAuthenticationService- Parameters:
surrogate- the surrogateprincipal- the principalservice- the service- Returns:
- true/false
-
getEligibleAccountsForSurrogateToProxy
public java.util.Collection<java.lang.String> getEligibleAccountsForSurrogateToProxy(java.lang.String username)
-
-