Class BaseSurrogateAuthenticationService
- java.lang.Object
-
- org.apereo.cas.authentication.surrogate.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.SurrogateAuthenticationServiceThis isBaseSurrogateAuthenticationService.- Since:
- 5.2.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apereo.cas.services.ServicesManagerservicesManagerThe Services manager.
-
Constructor Summary
Constructors Constructor Description BaseSurrogateAuthenticationService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancanAuthenticateAs(java.lang.String surrogate, org.apereo.cas.authentication.principal.Principal principal, java.util.Optional<org.apereo.cas.authentication.principal.Service> service)protected abstract 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.
-
-
-
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:
canAuthenticateAsin interfaceorg.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 surrogateprincipal- the principalservice- the service- Returns:
- true/false
-
-